KillZoneZ Posted August 27, 2015 Share Posted August 27, 2015 Really simple question: I want to assign a query's result to a variable but have no idea on how doing it Quote Link to comment https://forums.phpfreaks.com/topic/297955-how-to-assign-a-querys-result-to-a-variable/ Share on other sites More sharing options...
Barand Posted August 27, 2015 Share Posted August 27, 2015 $result = $db->query("SELECT something FROM somewhere"); Quote Link to comment https://forums.phpfreaks.com/topic/297955-how-to-assign-a-querys-result-to-a-variable/#findComment-1519754 Share on other sites More sharing options...
KillZoneZ Posted August 27, 2015 Author Share Posted August 27, 2015 Thank You Sir ^^ Quote Link to comment https://forums.phpfreaks.com/topic/297955-how-to-assign-a-querys-result-to-a-variable/#findComment-1519755 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.