Hi Friend ,
i need one more help here.
i modified below code:
<?php
$conn = mysql_connect("localhost","manish","manish","my_db");
if (!$conn)
{
die("mysql_connect failed ". mysql_error());
}
print "connected to ". mysql_get_host_info($conn). "<br />";
$qry = "SELECT id from test_manish where id = 1";
$result = mysql_query($qry,$conn);
if (!$result)
{
echo "could not run :" . mysql_error();
exit;
}
$row = mysql_fetch_row($result);
mysql_close($conn);
?>
when i run this it gives me below error message :
connected to localhost via TCP/IP
could not run :No database selected
can u please help me?
//Manish n