Sorry Rick. Thanks.

I could not understand your question. Are you asking for more of the code? I did not 
include that as I thought it would be too long in the mail.

Thanks
Denis

--- Rick Emery <[EMAIL PROTECTED]> wrote:

> so where is $rowe set?
> 
> Show us code that calls this page
> ----- Original Message -----
> From: "menezesd" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, January 13, 2003 6:21 PM
> Subject: [PHP] Error in variable when looping
> 
> 
> Hello friends,
> 
> I have made the following table of data and a button on every row to
> view the details. The code is
> working fine and the table is displayed with the buttons.
> 
> The problem I have is that the $SelectedItemNumber posted to the
> next page remains the same number
> no matter which row button I click. I have my relevant code below.
> Please help me. I know I am
> making a mistake somewhere but I cannot figure out where.
> 
> Quote :
> 
> 
> while($row=mysql_fetch_array($result)){
> 
> Print " <tr> ";
>     Print "<td width=\"12%\" align=\"center\" height=\"6\"
> bgcolor=\"#FFFFbf\"><font face=\"Tahoma\"
> color=\"#000000\">" ;
> Print   "<b> <font size=\"2\" color=\"ff0000\"> $row[OrgName]
> </b></font>";
> print "</font>  &nbsp;</td>";
> Print "<td width=\"12%\" align=\"center\" height=\"6\"
> bgcolor=\"#FFFFbf\"><font size=\"2\"
> face=\"Tahoma\" color=\"#000000\">" ;
> Print  $row[OrgCountry];
> print "</font>  &nbsp;</td>";
> Print "<td width=\"12%\" align=\"center\" height=\"6\"
> bgcolor=\"#FFFFbf\"><font size=\"2\"
> face=\"Tahoma\" color=\"#000000\">" ;
> Print  $row[OrgNumber];
> print "</font>  &nbsp;</td>";
> Print "<td width=\"12%\" align=\"center\" height=\"6\"
> bgcolor=\"#FFFFbf\"><font size=\"2\"
> face=\"Tahoma\" color=\"#000000\">" ;
> Print  $row[Orgaddress];
> print "</font>  &nbsp;</td>";
> Print "<td width=\"12%\" align=\"center\" height=\"6\"
> bgcolor=\"#FFFFbf\"><font size=\"2\"
> face=\"Tahoma\" color=\"#000000\">" ;
> Print  $row[OrgChief];
> print "</font>  &nbsp;</td>";
>     Print "<td width=\"12%\" align=\"center\" height=\"6\"
> bgcolor=\"#b7b700\"><font size=\"2\"
> face=\"Tahoma\" color=\"#000000\">" ;
> Print"<INPUT TYPE=\"submit\" value=\"View details\"
> Name=\"Details\">";
> print "</td>";
> Print"<input type=\"hidden\" name=\"SelectedItemNumber\" value=
> $row[Id]";
>   Print "</tr>";}
>   }
> ?>
> 
> 
> 
> Unquote
> 
> Thanks
> Denis
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to