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 Quote 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); Quote Link to comment https://forums.phpfreaks.com/topic/67484-easiest-question-ever/#findComment-338779 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.