I am showing the data to my visitors by selecting it from different tables. Now what I want to do is to transfer this data into one table exactly as it is presented to the visitors. How can I do that. Please find my code below to show the data to visitors. Thanks
<?php include('column.php') ?>
<body>
<table width="1954" border="2">
<tr>
<td width="213"> </td>
<td width="248">Question1</td>
<td width="289">Question2</td>
<td width="289">Question3</td>
<td width="289">Question4</td>
<td width="289">Question5</td>
<td width="289">Question6</td>
</tr>
<tr>
<td><strong>17266408</strong></td>
<td>
<?php $qu = "Select 79666X451X4679 from survey_79666";
$result = mysql_query($qu);
while($row = mysql_fetch_array($result))
{
echo "{$row[0]} <br>" ;
}
?> </td>
<td><?php $qu = "Select 79666X451X4680 from survey_79666";
$result = mysql_query($qu);
while($row = mysql_fetch_array($result))
{
echo "{$row[0]} <br>" ;
}
?></td>
<td><?php $qu = "Select 79666X451X4681 from survey_79666";
$result = mysql_query($qu);
while($row = mysql_fetch_array($result))
{
echo "{$row[0]} <br>" ;
}
?></td>
<td><?php $qu = "Select 79666X451X4682 from survey_79666";
$result = mysql_query($qu);
while($row = mysql_fetch_array($result))
{
echo "{$row[0]} <br>" ;
}
?></td>
<td><?php $qu = "Select 79666X451X4683 from survey_79666";
$result = mysql_query($qu);
while($row = mysql_fetch_array($result))
{
echo "{$row[0]} <br>" ;
}
?></td>
<td><?php $qu = "Select 79666X451X4684 from survey_79666";
$result = mysql_query($qu);
while($row = mysql_fetch_array($result))
{
echo "{$row[0]} <br>" ;
}
?></td>
</tr>
<tr>
<td><strong>18704956</strong></td>
<td><?php $qu = "Select 64468X447X4655 from survey_64468";
$result = mysql_query($qu);
while($row = mysql_fetch_array($result))
{
echo "{$row[0]} <br>" ;
}
?></td>
<td><?php $qu = "Select 64468X447X4656 from survey_64468";
$result = mysql_query($qu);
while($row = mysql_fetch_array($result))
{
echo "{$row[0]} <br>" ;
}
?></td>
<td><?php $qu = "Select 64468X447X4657 from survey_64468";
$result = mysql_query($qu);
while($row = mysql_fetch_array($result))
{
echo "{$row[0]} <br>" ;
}
?></td>
<td><?php $qu = "Select 64468X447X4658 from survey_64468";
$result = mysql_query($qu);
while($row = mysql_fetch_array($result))
{
echo "{$row[0]} <br>" ;
}
?></td>
<td><?php $qu = "Select 64468X447X4659 from survey_64468";
$result = mysql_query($qu);
while($row = mysql_fetch_array($result))
{
echo "{$row[0]} <br>" ;
}
?></td>
<td><?php $qu = "Select 64468X447X4660 from survey_64468";
$result = mysql_query($qu);
while($row = mysql_fetch_array($result))
{
echo "{$row[0]} <br>" ;
}
?></td>
</tr>
Thanks in advance