hey ich habe in kleines Problem
wenn man meine Seite aufruft wird kein Inhalt angezeigt
PHP-Code:
//SQL Abfrage für content
if(isset($action))
{
$sql_content = "SELECT * FROM `si_content` WHERE action = '{$action}'";
}
else
{
$sql_content = "SELECT * FROM `si_content` WHERE action = 'home'";
}
$content_query = mysql_query($sql_content) or die(mysql_error().'<hr>sql_content '.$sql_content.'<hr>');
$content_arr = mysql_fetch_array($content_query);
will heißen, sobald $action nicht definiert ist, tritt die else bedingung nicht in Kraft,obwohl sie es eigentlich sollte....
sobald $action definiert ist, läuft alles ohne Probleme
was ist an dem else falsch??