TheFilmGod Posted August 31, 2007 Share Posted August 31, 2007 How do I retrive a row from mysql where the id = "1" ? The id is the primary key and is auto increment. I know I want to do mysql_fetch_assoc () but I don't know how to select that row! Help!! I'm a noob Link to comment https://forums.phpfreaks.com/topic/67484-easiest-question-ever/ Share on other sites More sharing options...
lemmin Posted August 31, 2007 Share Posted August 31, 2007 $qry = mysql_query("SELECT * FROM table WHERE id = 1"); $row = mysql_fetch_assoc($qry); Link to comment https://forums.phpfreaks.com/topic/67484-easiest-question-ever/#findComment-338779 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.