zero-perfoliate
zero-perfoliate

Author Topic: PHP and MySQL paping  (Read 923 times)

Offline IppoX

  • New PHP Members
  • Posts: 1
  • Karma: +0/-0
PHP and MySQL paping
« on: February 28, 2010, 07:57:11 PM »
Hi everyone.
I need some help to somehow make a list of people and then be able to click on the name of the person to show information for that person.
Right now i'm using 2 files for the listing - database.php and peoplelist.php


database.php - Attached
peoplelist.php - Attached


- Anyone that can help me out?

Offline TomSayer

  • PHP Workers
  • **
  • Posts: 14
  • Karma: +0/-0
Re: PHP and MySQL paping
« Reply #1 on: March 16, 2010, 03:24:37 PM »
You basically have it correct already.
Code: [Select]
while($row = mysql_fetch_array($query))  {

echo "<tr>";
echo "<td>".$row['name']."</td>";
echo "</tr>";
  }
Thats doing all the work you need for what you want. Just change whats in the td to include a link (<a href=''>) and pass the users ID as a get variable to a script which will load that users info!

Offline RoseKnight

  • PHP Help Guru's
  • ****
  • Posts: 52
  • Karma: +0/-0
Re: PHP and MySQL paping
« Reply #2 on: March 19, 2010, 07:05:05 PM »
What is your problem? You just kinda gave us code without telling us whats going on.