I am a beginner with PHP MySQL and working on a basic Content Managment System for a 'few years old static site'. A table column repeats 2 cells with content in each followed by a spacer td that lines content up with other columns content. I am using 'while ($row = mysql_fetch_array($result))' to output the content and want to add the spacer td to every second loop. I have created and repeatedly modified an 'if statement with many ORs', that wont work. I have researched syntax models and all changes have not worked. Example of code I have tried is bellow. I am grateful for correct syntax and related advice.


Code:
while ($row = mysql_fetch_array($result)) {
echo '<tr><td height="25" width="325"><b>' . $row[update_text] . '</b></td> 
					</tr>' ;
 
if ($row[id]==3 || $row[id]==5 || $row[id]==7 || $row[id]==9){
echo '<tr><td height="5" width="325"></td></tr>' ;
}
endif;
}