bug fix: unknown mysql expression "insert or replace"

This commit is contained in:
Remi 2016-07-15 17:09:49 +02:00
parent 900af760ff
commit e32e8837c0
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ if ($db->query("SELECT uid,login FROM membres;")) {
while ($db->next_record()) { while ($db->next_record()) {
if (isset($list_quota[$db->f('uid')])) { if (isset($list_quota[$db->f('uid')])) {
$qu=$list_quota[$db->f('uid')]; $qu=$list_quota[$db->f('uid')];
$db2->query("INSERT OR REPLACE INTO size_web SET uid=?, size=?;",array(intval($db->f('uid')),intval($qu['used']))); $db2->query("REPLACE INTO size_web SET uid=?, size=?;",array(intval($db->f('uid')),intval($qu['used'])));
echo $db->f('login')." (".$qu['used']." B)\n"; echo $db->f('login')." (".$qu['used']." B)\n";
} }
} }