此查询不允许显示PHP页面。
$sql1="SELECT * FROM `quote_recruiter_posting` ";
$val1 = mysql_fetch_array($sql1);
<?php
if(strcmp("$val1['desc_ip']","JOB POSTING OFFER"))
{
$count1++;
$in_qry1=mysql_query("update job_jobs set count='$count1'");
}
else
{
$count1=0;
$in_qry1=mysql_query("update job_jobs set count='$count1'");"
}
?>
答案 0 :(得分:2)
在获取查询之前首先执行查询。使用以下代码
$sql1="SELECT * FROM quote_recruiter_posting ";
$result = mysqli_query($sql1) or die(mysqli_error());
$val1 = mysqli_fetch_array($result);
答案 1 :(得分:0)
试试这个
$sql1= mysqli_query("SELECT * FROM quote_recruiter_posting ");
$val1 = mysqli_fetch_array($sql1)