Winnie Pooh
-_-
Работает на локалке на серваке не хочет...
Народ, плз... объясните что неправильно.
кидает ошибку..
Warning: Supplied argument is not a valid MySQL result resource in /anton/public_html/function.php on line 44
Warning: Supplied argument is not a valid MySQL result resource in /anton/public_html/function.php on line 48
Народ, плз... объясните что неправильно.
PHP:
36: if(!($link=mysql_connect($host,$userdb,$passworddb)))
37: {
38: echo "error in connecting to the host";
39: return 0;
40: }
41:
42: mysql_select_db("news",$link);
43: $result=mysql_db_query("news","SELECT * FROM tablename ORDER BY id DESC");
44: $quantity_of_records=mysql_num_rows($result);
45: if ($quantity_of_records<4)
46: while($row=mysql_fetch_array($result)){
Warning: Supplied argument is not a valid MySQL result resource in /anton/public_html/function.php on line 44
Warning: Supplied argument is not a valid MySQL result resource in /anton/public_html/function.php on line 48