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? Quote Link to comment 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 Quote Link to comment 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! 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.