mysql_fetc_row problems

admin

Administrator
Staff member
what is wrong with this script?????

<?
$db = mysql_connect("newmicronpc", "root");

mysql_select_db("mydb",$db);

$result = mysql_query(" insert into users
(user_name, email, real_name)
values ('carlos', <!-- e --><a href="mailto:'[email protected]">'[email protected]</a><!-- e -->', 'carlos aguilar')");

$handle = mysql_query("SELECT * FROM users WHERE user_name = 'carlos'");


$myrow = mysql_fetch_row("$handle");

print("$myrow[0]");

?>


my system is tell me I dont have a vallid handle. and when I try to print out the value of $handle it gives me no value. The database exists the table exists.
 
Back
Top