Hallo Zusammen
Ich will eine ganz einfache Abfrage aus einer Tabelle machen:
//edit
$db = mysql_connect($host, $dbUserName, $dbPass) or die ("Could not connect");
mysql_select_db($dbName,$db);
$sql = "SELECT * FROM downloads ORDER BY id DESC";
$result = mysql_query($sql);
while($myrow = mysql_fetch_array($result))
{
$area = $myrow["area"];
$name = $myrow["name"];
$language = $myrow["language"];
$os = $myrow["os"];
$description = $myrow["description"];
echo "$area, $name, $language, $os, $description";
}
Und erhalte folgenden Error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /test/test.php on line 8
Bin froh für um jede Hilfe!
Ich will eine ganz einfache Abfrage aus einer Tabelle machen:
//edit
$db = mysql_connect($host, $dbUserName, $dbPass) or die ("Could not connect");
mysql_select_db($dbName,$db);
$sql = "SELECT * FROM downloads ORDER BY id DESC";
$result = mysql_query($sql);
while($myrow = mysql_fetch_array($result))
{
$area = $myrow["area"];
$name = $myrow["name"];
$language = $myrow["language"];
$os = $myrow["os"];
$description = $myrow["description"];
echo "$area, $name, $language, $os, $description";
}
Und erhalte folgenden Error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /test/test.php on line 8
Bin froh für um jede Hilfe!
Kommentar