在phpmyadmin中工作正常的SQL查询然后使用php脚本失败

时间:2015-02-14 03:01:55

标签: php mysql phpmyadmin

对于sql2执行的查询,chrome日志返回null

while($row = $result1->fetch_assoc())
 { 
 $temps = $row['testID'];
 $sql2 = "CREATE TEMPORARY TABLE temphelp (SELECT * FROM help where testID = '$temps');select * from temphelp where available = 1 order by url_count asc LIMIT 0,1;";
 ChromePhp::log($sql2);
 $result2 = $conn->query($sql2);
 ChromePhp::log($result2->num_rows);
}

0 个答案:

没有答案