Jump to content

two Queries at the same time, problem free code ?


nightkarnation

Recommended Posts

Am i taking a risk here ?

Could one of both querys not be updated ?

 

$result = mysql_query("SELECT code from apt_pictures WHERE code = '$code'");
if (mysql_num_rows($result) > 0) {
   mysql_query("UPDATE `apt_pictures` SET count = count + 1, time = '$time' WHERE code = '$code'");
   mysql_query("UPDATE `apt_data` SET totalPics = totalPics + 1 WHERE code = '$code'");
   		$imdone = true;
	echo "&imdone=".$imdone."&";
} 

 

Thanx in advance!!

Cheers,

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.