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 Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.