$conn=mysql_connect("localhost","",""); if($conn) { $db=mysql_select_db("kart",$conn); $query="select * from category"; $result=mysql_query($query,$conn); if($result) { $row=mysql_num_rows($result); echo($row); } else { echo(mysql_error($conn)); } } else { echo("hello"); }
conn=mysql_connect("localhost","","");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)