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


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)) {
    <td valign=top> 
    <table width=150 border=0 align=left class=allborder> 
	<td width=70 bgcolor=#eeeeee><a href="details.php?c_id=<?php echo $c_id; ?>" > <?php echo $row['ctitle']; ?> </a></td>
        <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>

I will appreciate.