If I wanted to fetch multiple ROWS without doing the while loop like this:
while ($data = mysql_fetch_array($select)) {}
how can I do that in mysql and php?
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.
mysql_fetch_array()is intended to fetch a single row from a resultset, so there is no reasonable way not using a while. Use mysqli with fetch_all or get used to while 🙂Your comment: