| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Apr 2004
Posts: 7
|
1: if (mysql_num_rows($result) > 0) 2: { 3: echo '<p align="center">'; 4: echo 'Select a customer:<br/>'; 5: while ($row =mysql_fetch_assoc($result)): 6: 7: echo("<go href=\"detail.php?".SID."\">".$row ['fname']." ".$row['lname']." method="post">"); 8: echo("<postfield name="rid" value=".$row['ID']."/>"); 9: echo("</go>") 10: endwhile; } Hello , I am working with PHP and WML and I get to line 7: always an error called unexpected T_STRING what is wrong there I can not recognize it can you please help me out ? |
|
|
|
|
|
#4 (permalink) | |
|
Registered User
Join Date: Apr 2004
Posts: 7
|
Quote:
Hi, I am a newbee what php is concerning can you please show me how to do it correctly ? I can´t find anything in the manuals... |
|
|
|
|
#5 (permalink) |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,236
|
Code:
But you have a closing > inbetween SID and fname. Should that be there? That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
|
|
|
|
#6 (permalink) | |
|
Registered User
Join Date: Apr 2004
Posts: 7
|
Quote:
I want to build a link with ".$row ['fname']." ".$row['lname']." and this link should be forwarded to detail.php. With > I can name the link I asumed , at least that was the case with echo("<a href=\"detail.php?rid=".$row['ID']."\">".$row['fname']." ".$row['lname']."</a>"); Now you say it is a closing tag I am confused !!! |
|
|
|
|
#7 (permalink) | |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,236
|
Quote:
OK but if you actually look, you'll see that you have a > after method="post" too. You've also got <postfield> nested inside the <go> tag. Code:
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
|
|
|
![]() |