while( $r = $DB->fetch_row() )
{
// Copy over the previous votes, this is the only way 🙁
$DB->query2("UPDATE tsl_sites SET votes_old='$r[votes]' WHERE id='$r[id]'");
}
That can create, in possibility 100s of queries. How could that be made less?
Code Sample
$DB->query("UPDATE tsl_config SET $fields WHERE id=$DB->sql_id");
$DB->query("UPDATE tsl_sites SET $fields2");
How could I possibly cut down those two queries into one, if possible?
Thankyou smile.gif