mmarif4u Posted August 21, 2008 Share Posted August 21, 2008 Can you post your updated code. Link to comment https://forums.phpfreaks.com/topic/120628-if-statements-with-mysql/page/2/#findComment-621847 Share on other sites More sharing options...
Nymphetamine Posted August 21, 2008 Author Share Posted August 21, 2008 <?php $result = mysql_query("SELECT * FROM ###########"); while($row = mysql_fetch_assoc($result)){ echo "<td>"; if ($row['date'] == '0501' && $row['property'] == '1') { echo "$row[name]"; } else { echo "Empty"; } echo "</td><td>"; if ($row['date'] == '1201' && $row['property'] == '1') { echo "$row[name]"; } else { echo "Empty"; } echo "</td><td>"; if ($row['date'] == '1901' && $row['property'] == '1') { echo "$row[name]"; } else { echo "Empty"; } echo "</td>"; } ?> Link to comment https://forums.phpfreaks.com/topic/120628-if-statements-with-mysql/page/2/#findComment-621875 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.