Jump to content


viewing stuff from db

  • Please log in to reply
2 replies to this topic

#1 desithugg

  • Members
  • PipPipPip
  • Advanced Member
  • 281 posts
  • LocationScarborough

Posted 30 March 2006 - 12:48 AM

nvm.. figured it out

#2 fenway

  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 30 March 2006 - 07:30 AM

I have no idea what you mean. What I think you might need is simply to pass a bunch of usernames to your PHP script. If so, simply add as many "&username=<blah>" to your querys string. I assume that PHP will handle this properly and make an array of them, much like it does (?) with checkboxes.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#3 wickning1

  • Members
  • PipPipPip
  • Advanced Member
  • 405 posts

Posted 30 March 2006 - 01:37 PM

This is more of a general PHP question than MySQL. You can pass information to a script by putting information in the href of the link that brings up the page. For instance, if you make a link like this:

<a href="myphpscript.php?id=5&mode=detail">

Then in the myphpscript.php file, you can use:

$myid = $_GET['id'];
$mymode = $_GET['mode'];

Try this tutorial and see if it helps you:
[a href=\"http://www.freewebmasterhelp.com/tutorials/php/6\" target=\"_blank\"]http://www.freewebmasterhelp.com/tutorials/php/6[/a]

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users