echo "<tr>";
while($res = mysql_fetch_array($q)){
$count++;
if (!($count % 2)){ echo "</tr><tr>"; }
echo "<td>{$res['id']}{$res['title']}</td>";
}
echo "</tr>";
echo "<tr>";
while($res = mysql_fetch_array($q)){
$count++;
if (!($count % 2)){ echo "</tr><tr>"; }
echo "<td>{$res['id']}{$res['title']}</td>";
}
echo "</tr>";