我有下面的代码,这些作业只加载了我使用过的一条记录,而while循环不起作用。$job="SELECT * from jobs where job_exp_date>=now()";$result=mysql_fetch_assocstrong></th>
<th><p class=\"slide-title\"><strong>Expiry Date
我想检查数据库中是否有多于或等于一行的字段' publish‘= publish,然后显示所有'publish’=publish的帖子。为此,我尝试从一条if语句开始-- if row count大于或等于1 than run while语句。但这将while语句限制为仅显示一个单独的post。query);$row_cnt = mysqli_num_rows