אז בעצם לא צריך את השורה הזאת:
for ($i=1; $i<=10; $i++)
כאילו לאפס I ולבצע תנאי?
אוקי תודה רבה[=
עריכה:
ניסית עם כל הקוד הזה:
PHP קוד:
<html dir="rtl">
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<style>
BODY {
background-image: url('images/maya_08.gif') ;
background-position: 50% 50%;
background-repeat: no-repeat}
img {border: 0;}
</style>
<title>דף חדש 1</title>
</head>
<body>
<?php
include ("config.php");
echo <<<st
<form method="POST" action="add_item.php">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="17%" id="AutoNumber1" height="118">
<tr>
st;
$query = mysql_query("SELECT * FROM item WHERE kat='hand_bags'");
while ($row = mysql_fetch_array($query))
{
echo <<<st
<td width="100%" height="12" align="center">
<img border="0" src="{$row['pic']}" width="118" height="84">
<input type="radio" value="{$row['value']}" checked name="R1">
</td>
st;
$i=1;
if($i % 4 == 0)
echo "<br />";
$i++;
}
echo <<<st
</tr>
</table>
<p><input type="submit" value="שלח" name="submit"><input type="reset" value="איפוס" name="B2">
</form>
</center>
st;
?>
וזה לא עובד \= הצבתי את זה לא נכון?
והנה הקישור שלו שתוכלו לראות שזה לא עובד:
http://84.94.230.229/~yairsh/maya/hand_bags.php