alex: NULL-Wert in SQL-Tabelle und Prüfung mit PHP?

Beitrag lesen

hi..

danke für deine hilfe, aber irgendwie funktioniert das nicht so richtig. ich hab hier mal das script. vielleicht hab ich ja noch was falsch gemacht.

<?
$link_content = mysql_connect ("localhost", "alex", "k5000s")
        or die ("keine Verbindung möglich");
    mysql_select_db("content",$link_content);
    $query_content = "select * FROM c_ll_taetigkeit";
    $result_content = mysql_query($query_content,$link_content);

//$query_content1 = "select * FROM c_ll_ausbildung";
    //$result_content1 = mysql_query($query_content1,$link_content);
    //$num_person = mysql_numrows($result1);
    //$row_content = mysql_fetch_array($result_content);

$datei1="./head.php";
$datei2="./footer.php";
include ($datei1);

echo "<table width=696 cellpadding=0 cellspacing=0 border=1>";
while ($row_content = mysql_fetch_array($result_content))
{
echo "<tr><td class="content">$row_content[T_Jahr]</td></tr>";
echo "<tr><td class="content">$row_content[T_Bezeichnung]</td></tr>";
if (is_null($row_content[T_Job1])){
echo "<tr><td><img src=".Bilder/trans.gif" width=5 height=6 border=1></td></tr>";
}
else {
echo "<tr><td class="content">$row_content[T_Job1]</td></tr>";
}

if (is_null($row_content[T_Job2])){
echo "<tr><td><img src=".Bilder/trans.gif" width=5 height=6 border=1></td></tr>";
}
else {
echo "<tr><td class="content">$row_content[T_Job2]</td></tr>";
}
}
echo "</table>";

mysql_close ($link_content);
include ($datei2);
?>