I have a mysql query that returns 5 rows.
SELECT name, email, address from users
How would I assign say, 3 row from this result set to a row?
Something like, $row = mysql_fetch_array($result[3])?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As already suggested you can use LIMIT to do this directly in the database but if you would like to to this programatically with PHP you can use
mysql_data_seek– Please note that the mysql_ methods are deprecated and will be removed in a future version of PHP.