TheFilmGod Posted June 25, 2007 Share Posted June 25, 2007 I'm making a page where only one row in a mysql table is queried for. Is it somehow possible to query for the whole row of information at one time and use php to break up that data, instead of querying each time I need a piece of info from that row? Is that even possible? Link to comment https://forums.phpfreaks.com/topic/57026-solved-best-queries/ Share on other sites More sharing options...
AndyB Posted June 25, 2007 Share Posted June 25, 2007 What? $query = "SELECT * from table_name WHERE some condition ... "; // query to retrieve one row $result = mysql_query($query); // one query executed $row = mysql_fetch_array($result); // one array containing all data from the row Link to comment https://forums.phpfreaks.com/topic/57026-solved-best-queries/#findComment-281694 Share on other sites More sharing options...
TheFilmGod Posted June 25, 2007 Author Share Posted June 25, 2007 Wow. That was a fast reply! Thanks a lot! Link to comment https://forums.phpfreaks.com/topic/57026-solved-best-queries/#findComment-281700 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.