Jump to content

viewing stuff from db


desithugg

Recommended Posts

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.
Link to comment
https://forums.phpfreaks.com/topic/6137-viewing-stuff-from-db/#findComment-22224
Share on other sites

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]
Link to comment
https://forums.phpfreaks.com/topic/6137-viewing-stuff-from-db/#findComment-22287
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.