Re: how to put links (to another page) behind records in a table

From: Date: Sun, 14 Oct 2001 10:59:59 +0000
Subject: Re: how to put links (to another page) behind records in a table
References: 1  Groups: php.db php.general 
Request: Send a blank email to php-db+get-13305@lists.php.net to get a copy of this message
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@Visionnet.nl> wrote in message news:3BC968F7.265D9E1B@Visionnet.nl... > 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@visionnet.nl > webmail: mailto:sanderpeters@yahoo.com > >

« previous php.db (#13305) next »