linux1880 Posted April 27, 2010 Share Posted April 27, 2010 Hello friends. do we need to name $query and $result variable as $q1, $q2, $q3 and $r1, $r2.. when quering databse multiple times in single php page ? I did run the queries 2 times in a php page, I could echo result from first query but not from second Link to comment https://forums.phpfreaks.com/topic/199887-running-multiple-mysql-queries-in-a-php-page/ Share on other sites More sharing options...
trq Posted April 27, 2010 Share Posted April 27, 2010 do we need to name $query and $result variable as $q1, $q2, $q3 and $r1, $r2.. when quering databse multiple times in single php page ? Depends entirely on your logic, but not usually. Link to comment https://forums.phpfreaks.com/topic/199887-running-multiple-mysql-queries-in-a-php-page/#findComment-1049158 Share on other sites More sharing options...
vero216 Posted April 27, 2010 Share Posted April 27, 2010 Try not to make 2 or more queries in a script.Can you give a more detailed example.Mysql can be heavy duty if not used properly. Link to comment https://forums.phpfreaks.com/topic/199887-running-multiple-mysql-queries-in-a-php-page/#findComment-1049162 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.