Web development lesson 49 php mysql select query fetching all rows using while loop

#pashto #mysql
Only one row from the database can be retrieved using mysql fetch array(). To obtain all rows, you must call it inside your while loop. Given that mysql fetch array() returns false when no more rows are available, the $looping increment is not required in this case. NOTE: In PHP 5.5, "mysql fetch array" was deprecated.
Web design
Be the first to comment