Was ist falsch daran?
MySQL fehler: You have an error in your SQL syntax near '' at line 1
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /kunden/index.php on line 21
PHP:
<?PHP
$results = mysql_query("SELECT typ, farbe, UNIX_TIMESTAMP(dateonserver) AS dateonserver, status FROM daten ORDER BY -dateonserver LIMIT 0);
if(!$results)
echo("MySQL fehler: ".mysql_error());
$tempurl = getpreposturl("img");
$preurl = $tempurl[1];
$posturl = $tempurl[2];
while($result = mysql_fetch_array($results))
{
petclrimage($result['typ'], $result['farbe'], "", $tempurl[0], $preurl, $posturl, false, ($result['status'] == 2 ? "ja" : ($result['status'] == 1 ? "nein" : "gelöscht")), $result['dateonserver']);
}
?>
MySQL fehler: You have an error in your SQL syntax near '' at line 1
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /kunden/index.php on line 21