hello from Greece!!!!!!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dianikol
Forum Newbie
Posts: 4
Joined: Mon Jan 21, 2008 7:14 am

hello from Greece!!!!!!!

Post 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 ......
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

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

Post 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.
There are 10 types of people in this world, those who understand binary and those who don't
dianikol
Forum Newbie
Posts: 4
Joined: Mon Jan 21, 2008 7:14 am

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

Post by dianikol »

Thank you very much my friend
dianikol
Forum Newbie
Posts: 4
Joined: Mon Jan 21, 2008 7:14 am

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

Post by dianikol »

any other suggestions would be ok!!
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

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

Post 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)
dianikol
Forum Newbie
Posts: 4
Joined: Mon Jan 21, 2008 7:14 am

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

Post by dianikol »

entaksei bre patrida
Keep going!!! ;)
Post Reply