mysql_fetch_array(): supplied argument is not a valid MySQL result
Publicado por Nestor (2 intervenciones) el 20/01/2007 16:53:41
Hola, tengo este codigo:
y me tira este error:
mysql_fetch_array(): supplied argument is not a valid MySQL result
1
2
3
4
5
6
7
8
9
10
11
12
13
<html>
<body>
<?php
$link = mysql_connect("localhost", "root");
mysql_select_db("nestor", $link);
$sql = "SELECT id, name FROM canciones ....";
$res = mysql_query($sql, $link);
while($row = mysql_fetch_array($res)){
echo "<a href='index.php?id=", $row['id'], "'>", $row['name'], "</a>";
}
?>
</body>
</html>
y me tira este error:
mysql_fetch_array(): supplied argument is not a valid MySQL result
Valora esta pregunta


0