Date: 10/14/01
- Next message: J-E-N: "[PHP-DB] cannot include file"
- Previous message: Sander Peters: "[PHP-DB] how to put links (to another page) behind records in a table"
- In reply to: Sander Peters: "[PHP-DB] how to put links (to another page) behind records in a table"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Well, I hope too! :-D
Use a different variable name.
while(list($id_from_database) = sql_query($sql_command)) {
print (... ... ... movie_form.php?ID=$id_from_database\">view
details</a>";
}
PS: You missed the closing </a>. Anyway, while $something equals to
something, and you set $something again inside the while loop, it will not
work.
--Julio Nobrega.
Um dia eu chego lá: http://sourceforge.net/projects/toca
"Sander Peters" <S.Peters <email protected>> wrote in message news:3BC968F7.265D9E1B <email protected> > Hello, > > I'm displaying a table with records and with <prev> and <next> buttons. > This table shows a list movies that I own. > I want to make a link after each movie so that the user can see the > details from that movie. > Like this: (for example) > > ID Titel > 1 movietitel1 view details > 2 movietitel2 view details > > I have a idea how to do that, it should be something like this: > > print("<TD><a href=\"http://..\forms\view_edit_movie_form?ID=$ID\">view > details</TD>"); > > The only problem is, that I should take again the variable out of the > query ID that I made earlier in my script. > The tabel is made in a While Loop, so I don't know how to get a "fresh" > ID nr from the query in the Loop. > > I hoop you understand me! > Thanks in advance for your answer > > > > > -- > Met vriendelijke groet / With Greetings, > > Sander Peters > > site: http://www.visionnet.nl/ > email: mailto:s.peters <email protected> > webmail: mailto:sanderpeters <email protected> > >
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: J-E-N: "[PHP-DB] cannot include file"
- Previous message: Sander Peters: "[PHP-DB] how to put links (to another page) behind records in a table"
- In reply to: Sander Peters: "[PHP-DB] how to put links (to another page) behind records in a table"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

