At the moment I have a script which will display a list of matching results, which usually lists 7-10 items in the results.
I want to display the results in a table if possible.
But I want to limit the table to three columns, how would I code this in?
Here is my existing code:
$kmaker = $_GET['maker'];
$makers = (int) $kmaker;
{
$get_kits = mysql_query("
SELECT K.kitid AS kit_id,
K.kitname AS kit_name,
K.kitmaker AS kit_maker,
M.makerid AS maker_id,
M.makername AS maker_name
FROM 1st_kits K, 1st_makers M
WHERE K.kitmaker = $kmaker AND
K.kitmaker = M.makerid
ORDER BY K.kitname",$connection)
or die(mysql_error());
}
if($kit_maker = $kmaker)
{
while($data = mysql_fetch_array($get_kits))
{
echo"
<a href='striptypes.php?maker=".$data[kit_maker]."&kit=".$data[kit_id]."&strip=0'>$data[maker_name] $data[kit_name]</a><br>";
}
}