hi,
i have this code that suppose to return 1 -> 5 rows from mysql table.
when i run it, all i get is the first row from the result.
if i'm remarking the code and placeing this line i see all the results
print_r($row);
what am i doing wrong?
$i=1;
while($row=mysql_fetch_assoc($result))
{
if($i==1)
{
$i++;
include 'include/update_vars.php';
include 'include/combo.php';
echo "<select name=\"farm\" size=\"1\"><?=$option_farm;?></select>\n";
echo "<input type=\"hidden\" name=\"projectguid\" value=\"".$pid."\">\n";
include 'include/toptable.php';
echo "<table dir=rtl border=0 cellspacing=0 cellpadding=0 id='maintable'>\n";
echo "<tr>\n";
include 'include/col-form-main.php';
continue;
}
else
{
include 'include/update_vars.php';
include 'include/combo.php';
include 'include/col-form-data.php';
$i++;
}
}
thanks
moti