תסתכלו כאן
http://labde.co.il/tropri/index.php?page=gallery
כאמור אני רוצה שכל 2 מוצרים זה ירד שורה
שיהיו 2 מוצרים בכל שורה,
הנה הקוד משום מה אני לא מצליח.
תודה מראש לתותחים כאן
PHP קוד:
<? $sql=mysql_query("SELECT * FROM mana ")or die(mysql_error());
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js?load=effects" type="text/javascript"></script>
<script src="js/lightbox.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255" />
<title>טרופרי - קטלוג מוצרים</title>
<style type="text/css">
<!--
.style3 {
color: #552C0C
}
.style9 {
color: #B22B28;
font-family: Arial, Helvetica, sans-serif;
font-size: large;
}
body {
background-color: #EEE7E1;
}
.style11 {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #582A09;
z-index: 1;
}
#apDiv1 {
position:absolute;
left:34px;
top:411px;
width:118px;
height:121px;
z-index:1;
}
.style12 {
font-size: x-large;
color: #592C0D;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.style13 {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
color: #ABCEEC;
}
.style14 {color: #99B3E9}
.style16 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #582A09; z-index: 1; }
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body dir="rtl">
<center>
<table width="950" border="0">
<tr valign="bottom">
<td width="950" height="18" bgcolor="#FFFFFF"><span class="style3"><img src="images/LogoBar.jpg" alt="" width="950" height="196" border="0" usemap="#Map" /></span></td>
</tr>
<tr>
<td height="18" bgcolor="#FFFFFF"><script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">
</div>
<script type="text/javascript">
var so = new SWFObject("banner.swf", "banner", "950", "170", "0", "#FFFFFF");
so.addParam("wmode", "opaque");
so.write("flashcontent");
</script>
<span class="style14"></span> </td>
</tr>
<tr>
<td height="173" bgcolor="#FFFFFF"><div align="right">
<p class="style12">
קטלוג מוצרים </p>
<table width="945" border="0">
<tr>
<td width="12" height="148" bgcolor="#885E2E"> </td>
<td colspan="2">
<table width="473">
<tr>
<?
$i=0;
while($row=mysql_fetch_array($sql))
{
$i++;
?>
<td width="121" height="124" valign="top"><a href="images/lidor.jpg" rel="lightbox"></a><a href="<?=$row['pic'];?>" rel="lightbox"><img src="<?=$row['pic'];?>" alt="תמונה" width="120" height="80" border="0" class="style11" /></a></td>
<td valign="top" width="340"><span class="style9">
<?=$row['ManaName'];?>
</span><br />
<span class="style16">
<?=$row['ManaDesc'];?>
</span><br />
<span class="style11">מחיר: <strong>
<?=$row['ManaPrice'];?>
</strong> ש"ח</span></td>
<? } ?>
</tr>
</table></td>
<td width="10" bgcolor="#885E2E"> </td>
</tr>
</table>
<br />
</div></td>
</tr>
<tr>
<td height="18" bgcolor="#8E6434"><div align="center" class="style13">כל הזכויות שמורות לטרופרי</div></td>
</tr>
</table>
<p> </p>
<p>
<map name="Map" id="Map">
<area shape="rect" coords="537,149,650,167" href="index.php?page=index" />
<area shape="rect" coords="411,133,515,152" href="index.php?page=gallery" />
<area shape="rect" coords="285,126,384,146" href="index.php?page=biz" />
<area shape="rect" coords="148,134,270,156" href="index.php?page=order" />
<area shape="rect" coords="37,137,121,155" href="index.php?page=contact" />
</map>
</p>
</body>
</html>