Display php varibales in two columns
Posted: Mon May 25, 2009 9:11 pm
Greetings,
I want to display two derived PHP variables in two columns or in a table. Here is my code:
The List.php contains pictures where users can scroll up and down. But I want to show them side by side. I tried div, looks complex.
Any help is very appreciated !!
Thanks,
Dilnesaw
I want to display two derived PHP variables in two columns or in a table. Here is my code:
Code: Select all
<?php
$link = ****
while($info = mysql_fetch_array( $data1))
{
$One .= $info['Name'] . "<br>";
$One .= $info['Video'] . "<br>";
$One .= $info['Title'] . "<br>";
}
?>
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"5\">";
echo "<tr>";
echo "<td>$One . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td colspan=\"2\"><?php include("List.php"); ?>;
echo "</tr>";
echo "</table>";
Any help is very appreciated !!
Thanks,
Dilnesaw