mysqli ignoring the first row in a table

前端 未结 4 1630
长发绾君心
长发绾君心 2021-01-25 18:14

Here is the code I\'m using to pull the data from the table:

require_once \'connect.php\';
$sql = "SELECT * FROM `db-news`";
$result = $mysqli->query         


        
4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-25 18:54

    Use do while instead of while as it will not skip the first step.

提交回复
热议问题