I am displaying data from database in a table.
In the table I have tr tags and in the tr tag I have two td tags.
Here is code.
<table class="rag_table" rules="all">
<tr><th><font size="5">Technical Events</font></th><th><font size="5">Non-technical events</font></th></tr>
<?php
$query="SELECT id,name FROM event_content WHERE have_img=1";
$havepage=mysql_query($query);
$query1="SELECT id,name FROM event_content WHERE have_img=0";
$havepage1=mysql_query($query1);
?>
while ($row=mysql_fetch_array($havepage)) {
?>
<tr><td><a href="robo_race.php?eve=eve$evt_id=<?php echo $row['id'];?>"><font color="#FC2B5F"><?php echo $row['name'];?></font></a></td>
<?php
}
while ($row1=mysql_fetch_array($havepage1)) {
?>
<td><?php echo $row1['name'];?></td></tr>
<?php
}
?>
</table>
What I want exactly is that the left td tag must display the have_img=1 values and the right td tags must display the have_img=0 values.
i want to display like...
Please help me.
