Page 1 of 1

hello from Greece!!!!!!!

Posted: Mon Jan 21, 2008 7:15 am
by dianikol
hi folks! I really need your help. I have made a database with MYSQL. Then I printed to the screen as a table,the table contains last name and first name,I want to do link the first column. If I click the first name
for example it will go to another page which shows in details the user information that i click before,
if i click the third name it shows the third user"s information, The link guide to the same page for every user ,
and that"s the problem, How i the link can understand that i click the first or the third or another user for example?Huh Please answer soon because i have to make it until this sunday ... Thanks!!
P.S.: Sorry for my english ......

Re: hello from Greece!!!!!!!

Posted: Mon Jan 21, 2008 7:43 am
by VladSun
Hello neighbour :)

Use something like this:

Code: Select all

<a href="getinfo.php?first_name=$first_name">$first_name</a> <a href="getinfo.php?last_name=$last_name">$last_name</a> 
Then you will have its value in $_GET in getinfo.php.

Re: hello from Greece!!!!!!!

Posted: Mon Jan 21, 2008 7:56 am
by dianikol
Thank you very much my friend

Re: hello from Greece!!!!!!!

Posted: Mon Jan 21, 2008 8:02 am
by dianikol
any other suggestions would be ok!!

Re: hello from Greece!!!!!!!

Posted: Mon Jan 21, 2008 8:03 am
by Sindarin
Geia sou kai egw apo Ellada :D

From what I understood is that you are trying to create a paginated table output from an SQL database.
VladSun's code will work, but I suggest you look more into pagination scripts. I still have minor problems understanding them and making them efficient, but clients ask for them all the time.

kai min anxonesai! 8)

Re: hello from Greece!!!!!!!

Posted: Mon Jan 21, 2008 8:08 am
by dianikol
entaksei bre patrida
Keep going!!! ;)