Hi,
Warning Error Message:
One Way To Print
Warning: mysql_fetch_arr ay() expects parameter 2 to be long, string given in F:\xampp installed\xampp \htdocs\mysql_f etch_demo1.php on line 8
thanks in advance.i dont know ,why am i facing this error
Code:
<?php
mysql_connect('localhost','root','');
mysql_select_db('test');
$query="select * from phonedirectory";
$result=mysql_query($query);
echo "One Way To Print";
echo "<br>";
while($row=mysql_fetch_array($result,mysql_num))
{
echo $row[0]." ".$row[1]." ".$row[2]."<br>";
}
?>
Warning Error Message:
One Way To Print
Warning: mysql_fetch_arr ay() expects parameter 2 to be long, string given in F:\xampp installed\xampp \htdocs\mysql_f etch_demo1.php on line 8
thanks in advance.i dont know ,why am i facing this error
Comment