I am trying to create a table with 3 columns and however many rows it takes to complete the query. Right now I can get it to insert into a table but it will add each query as a row and wont do the columns right. Any help would be appreciated
here is the code i have so far:
<?
$chandle = mysql_connect('server', 'username', 'pswd');
$boolval = mysql_select_db('db', $chandle);
$sql = mysql_query("SELECT DISTINCT MAKE FROM CARS");
{
echo '<table>';
while ($row = mysql_fetch_array($sql))
{
echo '
<tr>
<td>' .$row["MAKE"]. '></td>
</tr>
';
}
echo '</table>';
}
?>
Any help would be appreciated. thanks