Kindly let me know how can I put the limit on the record in the below function. I want to fetch all the record but one first page I want to show 5 only. Like pagination.
while (($row = mysqli_fetch_array($rd)) ){
}
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.
However, this is not recommended! Use a
limitclause in the SQL query instead, to avoid using a lot of CPU power for getting records you’re not going to use anyway.