No replies
josephbupe
josephbupe's picture
Offline
newbie
Last seen: 9 years 29 weeks ago
Timezone: GMT+2
Joined: 2013-03-06
Posts: 2
Points: 4

Hi,

I would like to convert my picture gallery table to css layout.

The table has two levels: one for the title and the other for the picture. The tables are dynamically incremented depending on the number of images. I do not know how the same is done with css.

Here is my code html table code:

if (mysql_num_rows($sql_result)>0) {
 
//	The following line gives us an SQL statement with appropriate limits applied
	$sql_result=mysql_query($sql) or die($sql." - ".mysql_error());
 
	while ($row = mysql_fetch_assoc($sql_result)) {
	$c_id=$row['c_id'];
?>
    <td valign=top> 
 
    <table width=150 border=0 align=left class=allborder> 
    <tr> 
	<td width=70 bgcolor=#eeeeee><a href="details.php?c_id=<?php echo $c_id; ?>" > <?php echo $row['ctitle']; ?> </a></td>
    </tr>
    <tr> 
        <td><a href=details_sec.php?c_id=<?php echo $c_id ?> ><img src="./images/<?php echo $row['cfilename']; ?>" width="90" height="120" alt="" /></a>
        </td> 
    </tr> 
 
    </table>
 
 <tr>
 
 </tr>
 </td>
 
<?php

I will appreciate.

joseph