0

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

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by rajabhaskar525
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.