Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/interm/public_html/mlm/index.php on line 6
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/interm/public_html/mlm/index.php on line 7
Warning: Cannot modify header information - headers already sent by (output started at /home/interm/public_html/mlm/index.php:6) in /home/interm/public_html/mlm/index.php on line 10
На остальных страницах все ровно.
Прошу знающих помоч в решении данной проблемы!
Ниже начало кода index.php
<?if(isset($f)):
setcookie("parent","$f", time() + (86400*30));
else:
require("connectdb.inc.php");
$sql=mysql_query("select*from parent,select*from users where rang='1'");
$row=mysql_fetch_array($sql);
$refs1=mysql_num_rows($sql);
if($refs1==0);
$f=$row['parent'];
setcookie("parent","$f", time() + (86400*30));
endif;
?>
<?include("header.html");?>