Hallo,
hab es jetzt mal so gemacht. Das eine Meldung kommt wenn keine Verbindung besteht das will ich auf keinen Fall. Die soll mal schön weg bleiben.
So wenn ich das dann teste, dann bekomme ich folgende Meldung:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/www/ph2s559/html/index1.php on line 125
Was mache ich da falsch?
Gruß knuddelMaus_berlin_19
hab es jetzt mal so gemacht. Das eine Meldung kommt wenn keine Verbindung besteht das will ich auf keinen Fall. Die soll mal schön weg bleiben.
PHP-Code:
<?php
$aData = Array();
$line = mysql_query('SELECT ueberschrift, text FROM `PartyTip` WHERE anfang < '.time().' AND '.time().' < ende ORDER BY RAND() LIMIT 1');
while ($line = mysql_fetch_array($result, MYSQL_ASSOC))
{
$aData = $line;
}
?>
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/www/ph2s559/html/index1.php on line 125
Was mache ich da falsch?
Gruß knuddelMaus_berlin_19
Kommentar