cleaned up the errors for initial try at 0.9.3pre?

This commit is contained in:
skeeter 2000-10-26 02:30:01 +00:00
parent 443ae65668
commit dadcaeb28b
2 changed files with 3 additions and 1 deletions

View File

@ -241,6 +241,7 @@
}
function update_owner($table,$field){
global $db;
$db->query("select distinct($field) from $table");
if ($db->num_rows()) {
while($db->next_record()) {

View File

@ -230,6 +230,7 @@
}
function update_owner($table,$field){
global $db;
$db->query("select distinct($field) from $table");
if ($db->num_rows()) {
while($db->next_record()) {
@ -238,7 +239,7 @@
for($i=0;$i<count($owner);$i++) {
$db->query("select account_id From accounts where account_lid='".$owner[$i]."'");
$account_id[$i] = $db->f("account_id");
$db->query("update $table set $field=".$account_id[$i]. where $field='".$owner[$i]."'");
$db->query("update $table set $field=".$account_id[$i]." where $field='".$owner[$i]."'");
}
}
$db->query("alter table $table change $field $field int(11) NOT NULL");