jeg kan simpelthen ikke finde fejlen i denne php kode, men regner med det er omrking IF sætningen eftersom koden kun udskriver den første mulighed ligemeget hva værdien er
<?
$connection = mysql_connect("***","****","****");
mysql_select_db("******", $connection);
$query = mysql_query("SELECT * FROM medlemmer ORDER BY id") or die (mysql_error());
while($row = mysql_fetch_array($query))
{
if($row[id] == 1 OR 3 OR 5 OR 7 OR 9) {echo"
<table border='0' cellspacing='0' cellpadding='0' align='center' width='550' background='images/backgrounds/bgphoto.gif'>
<tr>
<td width='10' height='10'></td>
<td></td>
</tr>
<tr>
<td></td>
<td>
<table border='0' cellspacing='0' cellpadding='0' align='center' width='540'>
<tr>
<td height='100' width='125'><img src='images/photo/$row[knavn].gif' height='100' width='125' border='0' alt='$row[knavn]'></td>
<td><table border='0' cellspacing='0' cellpadding='0' align='center' width='415'>
<tr>
<td height='25' width='75' align='Left'><font face='Arial' color='#000000' size='-2'>Navn:</font></td>
<td width='75' align='Left'><font face='Arial' color='#000000' size='-2'>$row[rnavn]</font></td>
<td width='50' align='Left'><font face='Arial' color='#000000' size='-2'>Speciale:</font></td>
<td width='215' align='Left'><font face='Arial' color='#000000' size='-2'>$row[speciale]</font></td>
</tr>
<tr>
<td height='25' width='75' align='Left'><font face='Arial' color='#000000' size='-2'>Kaldenavn:</font></td>
<td width='75' align='Left'><font face='Arial' color='#000000' size='-2'>$row[knavn]</font></td>
<td width='50' align='Left'><font face='Arial' color='#000000' size='-2'>Musik:</font></td>
<td width='215' align='Left'><font face='Arial' color='#000000' size='-2'>$row[musik]</font></td>
</tr>
<tr>
<td height='25' width='75' align='Left'><font face='Arial' color='#000000' size='-2'>Født:</font></td>
<td width='75' align='Left'><font face='Arial' color='#000000' size='-2'>$row[fodt]</font></td>
<td width='50' align='Left'><font face='Arial' color='#000000' size='-2'></font></td>
<td width='215' align='Left'><font face='Arial' color='#000000' size='-2'></font></td>
</tr>
<tr>
<td height='25' width='75' align='Left'><font face='Arial' color='#000000' size='-2'>Adresse:</font></td>
<td width='75' align='Left'><font face='Arial' color='#000000' size='-2'>$row[adresse]</font></td>
<td width='50' align='Left'><font face='Arial' color='#000000' size='-2'></font></td>
<td width='215' align='Left'><font face='Arial' color='#000000' size='-2'></font></td>
</tr>
</table></td>
</tr>
</table></td>
</tr></table><br>
";
}
else{echo "
<table border='0' cellspacing='0' cellpadding='0' align='center' width='550' background='images/backgrounds/bgphoto1.gif'>
<tr>
<td></td>
<td width='10' height='10'>
</tr>
<tr>
<td><table border='0' cellspacing='0' cellpadding='0' align='center' width='540'>
<tr>
<td><table border='0' cellspacing='0' cellpadding='0' align='center' width='415'>
<tr>
<td height='25' width='75' align='Left'><font face='Arial' color='#000000' size='-2'>Navn:</font></td>
<td width='75' align='Left'><font face='Arial' color='#000000' size='-2'>$row[rnavn]</font></td>
<td width='50' align='Left'><font face='Arial' color='#000000' size='-2'>Speciale:</font></td>
<td width='215' align='Left'><font face='Arial' color='#000000' size='-2'>$row[speciale]</font></td>
</tr>
<tr>
<td height='25' width='75' align='Left'><font face='Arial' color='#000000' size='-2'>Kaldenavn:</font></td>
<td width='75' align='Left'><font face='Arial' color='#000000' size='-2'>$row[knavn]</font></td>
<td width='50' align='Left'><font face='Arial' color='#000000' size='-2'>Musik:</font></td>
<td width='215' align='Left'><font face='Arial' color='#000000' size='-2'>$row[musik]</font></td>
</tr>
<tr>
<td height='25' width='75' align='Left'><font face='Arial' color='#000000' size='-2'>Født:</font></td>
<td width='75' align='Left'><font face='Arial' color='#000000' size='-2'>$row[fodt]</font></td>
<td width='50' align='Left'><font face='Arial' color='#000000' size='-2'></font></td>
<td width='215' align='Left'><font face='Arial' color='#000000' size='-2'></font></td>
</tr>
<tr>
<td height='25' width='75' align='Left'><font face='Arial' color='#000000' size='-2'>Adresse:</font></td>
<td width='75' align='Left'><font face='Arial' color='#000000' size='-2'>$row[adresse]</font></td>
<td width='50' align='Left'><font face='Arial' color='#000000' size='-2'></font></td>
<td width='215' align='Left'><font face='Arial' color='#000000' size='-2'></font></td>
</tr>
</table></td>
<td height='100' width='125'></td><img src='images/photo/$row[knavn].gif' height='100' width='125' border='0' alt='$row[knavn]'></td>
</tr>
</table></td>
</tr></table><br>
";
}}
mysql_close($connection);
?>
det kan ses
Her