finde einfach den Fehler nicht, warum immer Warning kommt:
versucht mit
mysql_fetch_array() -> Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in
und
mysql_fetch_assoc() -> Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in
da der quelltext umfangreich ist, die wichtigsten sachen wie es da zu kommmt:
PHP-Code:
echo $sqlsuche="SELECT * FROM version WHERE VersionP <".$ip[$i]['version'];
HTML-Code:
SELECT * FROM version WHERE VersionP <1115
PHP-Code:
$result = mysql_query($sqlsuche); if (!$result){error(mysql_error());}
PHP-Code:
echo "error=".mysql_errno() . ": " . mysql_error() ;
PHP-Code:
echo "num_rows ",$num_rows = mysql_num_rows($result);
line 82>
PHP-Code:
while ($row = mysql_fetch_array($result, MYSQL_BOTH)) { print_r($row); }
HTML-Code:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in xxx on line 82
von print_r($row); mit mysql_fetch_array()
HTML-Code:
Array
(
[0] => 1114
[VersionP] => 1114
[1] => 1114
[VersionO] => 1114
[2] => 1250642817
[Datum] => 1250642817
)
mysql_fetch_assoc()
HTML-Code:
Array
(
[VersionP] => 1114
[VersionO] => 1114
[Datum] => 1250643062
)