Sql problem

wxdqz

New Member
I want to extract password from the database Devnet @ localhost with no user/pass.

without the \"WHERE username=$username\" it works but when i try it with that part I get a error \"Warning: Supplied argument is not a valid MySQL result resource in C:\\apache\\htdocs\\index.php on line 8\"

I am almost a hour busy to debug it but i cant find it... :(

<?
$username = \"rayman\";
$query = \"SELECT * FROM user_profile WHERE username=$username\";
$db = mysql_pconnect(\"localhost\");
mysql_select_db(\"mailing\",$db);
$result = mysql_db_query(Devnet ,$query);
$row = mysql_fetch_object($result);
$row->Password
?>
 
Back
Top