nightkarnation Posted November 14, 2008 Share Posted November 14, 2008 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, Link to comment https://forums.phpfreaks.com/topic/132654-two-queries-at-the-same-time-problem-free-code/ Share on other sites More sharing options...
DarkWater Posted November 14, 2008 Share Posted November 14, 2008 It's fine. Link to comment https://forums.phpfreaks.com/topic/132654-two-queries-at-the-same-time-problem-free-code/#findComment-689907 Share on other sites More sharing options...
nightkarnation Posted November 14, 2008 Author Share Posted November 14, 2008 Thanx darkWater ! Cheers, Link to comment https://forums.phpfreaks.com/topic/132654-two-queries-at-the-same-time-problem-free-code/#findComment-689909 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.