kavaan
جمعه 16 اسفند 1392, 15:51 عصر
سلام به همه ی دوستان من یه قطعه کد معمولی نوشتم و گذاشتم تو سرور هر کاری میکنم همش یه خطا داره . لطفا کمک کنید.
کد:
<?php
$connect=mysql_connect("localhost","username","pass");
$sql="select * from 'db'.'table'";
$res=mysql_query($sql,$connect);
$num=mysql_num_rows($res);
?>
ارورش هم اینه :
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home4/***/public_html/connect.php on line 5
کد:
<?php
$connect=mysql_connect("localhost","username","pass");
$sql="select * from 'db'.'table'";
$res=mysql_query($sql,$connect);
$num=mysql_num_rows($res);
?>
ارورش هم اینه :
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home4/***/public_html/connect.php on line 5