We put a MySQL table data in an array that named $row1. Now, we want to echo some rows only from this array. For example :
While ($row1 = mysql_fetch_array($query)) {
echo $row1['name'];
}
(But where the id is equal 5)
How we can do this?
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.
On your SQL statement, add this to the end:
WHERE id = 5, if you already have aWHEREclause, addAND id = 5Alternately…
Post all your code..we can make this experience less painful for you.