Hi there,
I am trying to execute a query on database but it's giving error as:
Warning: mysql_fetch_row (): supplied argument is not a valid MySQL result resource in C:\wamp\www\201 00519\HonestFol lowers.com\desi gn\datagraph.ph p on line 21.
and also shows Resource id #46.
The connection is successful, database is also selected.
What is the problem? can U help me on this,
help will be greatly appreciated.
Here is my code:
I am trying to execute a query on database but it's giving error as:
Warning: mysql_fetch_row (): supplied argument is not a valid MySQL result resource in C:\wamp\www\201 00519\HonestFol lowers.com\desi gn\datagraph.ph p on line 21.
and also shows Resource id #46.
The connection is successful, database is also selected.
What is the problem? can U help me on this,
help will be greatly appreciated.
Here is my code:
Code:
if($con = mysql_connect('localhost', 'Rushi', 'bhanage'))
echo "connection successful!!<br>";
else
die (mysql_error());
$db = mysql_select_db("rohit25_honestfollowers", $con);
echo "Database successfully selected!!<br>";
$sql = mysql_query("select * from usersearchmaster") or die (mysql_error());
echo $sql;
$dishf = array();
while($res = mysql_fetch_row($exec))
{
echo $dishf[] = $res[DishoestFollower]."<br>";
}
Comment