For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > February 2007 > Re: [PHP-DB] Ways to display remaining data columns.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] Ways to display remaining data columns.
Christopher Blöcker

2007-02-03, 6:58 pm

my first idea is the following:

since i'm sure there must be any kind of primary key you could add a
simple link that opens in a new window and passes your primary key. a
script (the one in the new window) now gets the details from the database
the link might be something like the following: <a
href='details.php?unique_id=123' target='_blank'>Details</a>
but please make shure you check the submitted data before using it in a
query.....(think of sql injections......)
you might consider using a POST form instead of GET in order to make it
more secure i think it should also work with something like
target='_blank' but i'm not sure at the moment

i hope it helps.... and i hope i did not forget security issues ;)

Chris
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com