Page 1 of 1

Display php varibales in two columns

Posted: Mon May 25, 2009 9:11 pm
by Dilnesaw
Greetings,

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>"; 
 
 
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

Re: Display php varibales in two columns

Posted: Mon May 25, 2009 11:04 pm
by mikemike
It's not complex at all, check out the w3 schools website.