//( ! ) Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given
不知道遇到这个问题。请大家帮帮我。这是我的代码:
$query = "SELECT t1.employeecode, t1.employeename, t2.v, t2.w, t3.total, t3.totals
FROM invoice t1,salaries t2,table1 t3
WHERE t1.employeecode = salaries.employeecode AND
t1.employeecode = t3.employeecode
ORDER BY t1.employeecode ASC";
$result = mysql_query($query,$con);
if(mysql_num_rows($result)>0){
echo '<table><tr><th>Article title</th> </tr>';
while($row=mysql_fetch_array($result)){
//$postedon = strftime("%A %e %b %Y",strtotime($row['postedon']));
echo '<h1><tr><td><a href="3.php?employeecode='.$row["employeecode"].'">'.$row["deparment"].'</a></td></tr></h1>';
}