MySql error Message

admin

Administrator
Staff member
I want to select the password from a friend from my db and echo it. I tried following:

$verbindung = mysql_connect (\"mysql.myhost.net\", \"xxx\", \"xxxx\")

or die (\"Unable to connect to Database\");


$sql = \"SELECT Password FROM Friends WHERE Name=\\\"ali\\\"\" ;
$result = mysql_query($sql);
while($data = mysql_fetch_array($result))
{
echo $data[\"Password\"];
}

But the Interpreter tells me an MySql error on following line:

while($data = mysql_fetch_array($result))


I don\'t no what is wrong with that script. Please help

regards ali
 
Back
Top