Kann mir jemand helfen??? ich finde den Fehler nicht:
Quelltext:
wenn ich die entsprechende Seite aufrufe bekomme ich folgende Fehlermeldung:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL
result resource in /usr/export/www/vhosts/funnetwork/hosting/wickedazz/
collection_of_signatures/entry_list.php on line 7
Quelltext:
PHP-Code:
<?php
$tablename="javaxbluetooth";
$sql="SELECT name, email, city, country, date FROM $tablename
WHERE check=1 ORDER BY name DESC ";
$link = mysql_connect("localhost", "wickedazz", "delphin");
mysql_select_db("wickedazz", $link);
$result = mysql_query($sql, $link);
for($i=0;$i<mysql_num_rows($result);$i++)
{
$res[$i]=mysql_fetch_array($result);
}
?>
<html>
<head>
<meta http-equiv="expires" content="0">
<meta http-equiv="cache-control" content="no-cache">
<title>javax.bluetooth - collection of signatures</title>
</head>
<body>
<h1>Collection of signatures for javax.bluetooth - API</h1>
<br>
<a href="new_entry.php">Please sign in!</a> and <a href="tell.php">
tell all K700-owners you know!</a><br><br>
<?php
$count=count($res);
echo "<p>Up to now " .$count. " persons signed to request SonyEricsson
to incorporate the javax.bluetooth - API into the next firmware for the
K700-handset.";
echo "<br>Please be next!</p>";
echo "<table style=padding:0px width=555>";
for($i=0;$i<count($res);$i++)
{
echo "<tr><td width=30px> ".$i.". </td><td width=175><a
href=mailto:" .$res[$i][email]. ">" .$res[$i][name]. "</a></td>
<td width=175> ".$res[$i][city]." </td><td width=175> ".$res[$i][country]." </td></tr>";
}
echo "</table>";
?>
<br><br><a href="new_entry.php">Please sign in!</a> and <a
href="tell.php">tell all K700-owners you know!</a>
</body> </html>
wenn ich die entsprechende Seite aufrufe bekomme ich folgende Fehlermeldung:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL
result resource in /usr/export/www/vhosts/funnetwork/hosting/wickedazz/
collection_of_signatures/entry_list.php on line 7
Kommentar