Hi Ticalleh,
I suppose you the output with something like:
$row = mysql_fetch_array() {
echo "<tr><td>".$row[link]."</td></tr>";
}
now it's easy if you just want to put one result in the left col and one in the right, the again one left, one right...just add a second mysql_fetch_array and a second column
while ($row = mysql_fetch_array($result)) {
echo "<tr>";
echo "<td>".$row[link]."</td>";
$row = mysql_fetch_array($result)
echo "<td>".$row[link]."</td>";
echo"</tr>";
}
however this could propably cause PHP to output an error message, if the amount of result are odd (this can't be difficult to suppress however)
if you want to do it like at php.net, you must first count the number of results using
$count = mysql_num_rows($result)
and you must assign the whole result into an array, so that you can directly output a specific result:
the loop for doing this is:
while ($row = mysql_fetch_array($result)) {
$result_array[] = $row;
}
now you can directly output one specific result:
echo $row[12][link];
if you know the amount of results just devide it by two, and make a while loop for the output:
let's say you habe 24 results, that means you have to ouput:
$row[0][link] and $row[11][link]; then:
$row[1][link] and $row[12][link]; then:
$row[2][link] and $row[13][link];
... and so on!
good luck!
Matthias