that is the hole code.i have a while loop on every image cause they all have there respected area.
i did it cause i have no clue how to do the css part of it cause im using php to extract the image name from my database.i was using
PHP Code:
<?php
// database connect script.
mysql_connect("localhost", "techker_techker", "techker") or die(mysql_error()) ;
mysql_select_db("techker_softcore") or die(mysql_error()) ;
$fileSQL=" SELECT *
FROM featured WHERE location=1
";
$fileLIST=mysql_query($fileSQL);
$fileSQL2=" SELECT *
FROM featured WHERE location=2
";
$fileLIST2=mysql_query($fileSQL2);
$fileSQL3=" SELECT *
FROM featured WHERE location=3
";
$fileLIST3=mysql_query($fileSQL3);
$fileSQL4=" SELECT *
FROM featured WHERE location=4";
$fileLIST4=mysql_query($fileSQL4);
$fileSQL5=" SELECT *
FROM featured WHERE location=5
";
$fileLIST5=mysql_query($fileSQL5);
$fileSQL6=" SELECT *
FROM featured WHERE location=6
";
$fileLIST6=mysql_query($fileSQL6);
$fileSQL7=" SELECT *
FROM featured WHERE location=7
";
$fileLIST7=mysql_query($fileSQL7);
$fileSQL8=" SELECT *
FROM featured WHERE location=8
";
$fileLIST8=mysql_query($fileSQL8);
$fileSQL9=" SELECT *
FROM featured WHERE location=9
";
$fileLIST9=mysql_query($fileSQL9);
?>
<html>
<head>
<title>index</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: #CCCCCC;
}
-->
</style></head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (index.psd) -->
<table width="900" height="901" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
<tr>
<td colspan="5">
<img src="images/main_01.jpg" width="900" height="15" alt=""></td>
</tr>
<tr>
<td colspan="2" rowspan="4">
<img src="images/main_02.jpg" width="591" height="376" alt=""></td>
<td colspan="2">
<img src="images/main_03.jpg" width="300" height="57" alt=""></td>
<td rowspan="6">
<img src="images/main_04.jpg" width="9" height="885" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/main_05.jpg" width="300" height="49" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/main_06.jpg" width="300" height="51" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/main_07.jpg" width="300" height="219" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/main_08.jpg" width="378" height="509" alt=""></td>
<td colspan="2"><table width="502" height="416" border="0" cellpadding="0" cellspacing="0">
<tr>
<th width="501" height="416" valign="top" background="images/main_09.jpg" scope="row"><table width="502" height="415" border="0" cellpadding="0" cellspacing="0">
<tr><? while ($row = @mysql_fetch_assoc($fileLIST)) { ?>
<th width="166" valign="top" scope="row"><?php echo '<a href="/admin/art/'.$row['pic'] .'" target="_blank" >
<img src="/admin/art/'.$row['pic'].'" border="0" alt="" width=65/>
</a>
<br />'; ?></th><? while ($row2 = @mysql_fetch_assoc($fileLIST2)) { ?>
<th width="183" valign="top" scope="row"><?php echo '<a href="/admin/art/'.$row2['pic'] .'" target="_blank" >
<img src="/admin/art/'.$row2['pic'].'" border="0" alt="" width=65/>
</a>
<br />'; ?></th><? while ($row3 = @mysql_fetch_assoc($fileLIST3)) { ?>
<th width="153" valign="top" scope="row"><?php echo '<a href="/admin/art/'.$row3['pic'] .'" target="_blank" >
<img src="/admin/art/'.$row3['pic'].'" border="0" alt="" width=65/>
</a>
<br />'; ?></th>
</tr>
<tr><? while ($row4 = @mysql_fetch_assoc($fileLIST4)) { ?>
<th valign="top" scope="row"><?php echo '<a href="/admin/art/'.$row4['pic'] .'" target="_blank" >
<img src="/admin/art/'.$row4['pic'].'" border="0" alt="" width=65/>
</a>
<br />'; ?></th><? while ($row5 = @mysql_fetch_assoc($fileLIST5)) { ?>
<th valign="top" scope="row"><?php echo '<a href="/admin/art/'.$row5['pic'] .'" target="_blank" >
<img src="/admin/art/'.$row5['pic'].'" border="0" alt="" width=65/>
</a>
<br />'; ?></th><? while ($row6 = @mysql_fetch_assoc($fileLIST6)) { ?>
<th valign="top" scope="row"><?php echo '<a href="/admin/art/'.$row6['pic'] .'" target="_blank" >
<img src="/admin/art/'.$row6['pic'].'" border="0" alt="" width=65/>
</a>
<br />'; ?></th>
</tr>
<tr><? while ($row7 = @mysql_fetch_assoc($fileLIST7)) { ?>
<th valign="top" scope="row"><?php echo '<a href="/admin/art/'.$row7['pic'] .'" target="_blank" >
<img src="/admin/art/'.$row7['pic'].'" border="0" alt="" width=65/>
</a>
<br />'; ?></th><? while ($row8 = @mysql_fetch_assoc($fileLIST8)) { ?>
<th valign="top" scope="row"><?php echo '<a href="/admin/art/'.$row8['pic'] .'" target="_blank" >
<img src="/admin/art/'.$row8['pic'].'" border="0" alt="" width=65/>
</a>
<br />'; ?></th><? while ($row9 = @mysql_fetch_assoc($fileLIST9)) { ?>
<th valign="top" scope="row"><?php echo '<a href="/admin/art/'.$row9['pic'] .'" target="_blank">
<img src="/admin/art/'.$row9['pic'].'" border="0" alt="" width=65/>
</a>
<br />'; ?></th>
</tr>
<? } } } } } } } } } ?>
</table></th>
</tr>
</table></td>
<td rowspan="2">
<img src="images/main_10.jpg" width="11" height="509" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/main_11.jpg" width="502" height="93" alt=""></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="378" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="213" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="289" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="11" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="9" height="1" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>
the echo '<a href="/admin/art/'.$row9['pic'] .'" target="_blank">
<img src="/admin/art/'.$row9['pic'].'" border="0" alt="" width=65/>
</a>
<br />';
just gets the pics name in that table
if i new how to do it so the pics can show like i want
i would just do one query that gets all the names and echos it.but that gives me all the pics on one line or vertical not
pic pic pic
pic pic pic
Bookmarks