well im using a Denwer program on wich i created MySql database,
now, when im using this code:
<?php
$link = mysql_connect('localhost', 'root', '');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
im getting "connected successfully" so its all should be good
but when im tryin to extract somethin from the database like:
<?php
$link = mysql_connect('localhost', 'root', '');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
$query = 'SELECT password From ".au_server_ls.".account_data';
$result = mysql_query($query);
$array = mysql_fetch_lengths($result);
echo $array;
mysql_close($link);
?>
it gives me the following error:
Connected successfully
Warning: mysql_fetch_lengths() expects parameter 1 to be resource, boolean given in Z:\denwer\www\denwer\index.php on line 9
cant some1 pliz help me with this issue?