Jump to content

Archived

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

Guest PcGamerz13

Link help

Recommended Posts

Guest PcGamerz13
Fixed

Share this post


Link to post
Share on other sites
[code]$sql2="SELECT * FROM clan_members WHERE Gamer_Tag='" . $_REQUEST['Gamer_Tag'] . "'"; [/code]

I should also add that $_REQUEST is the global array that holds the $_GET and $_POST data... $_GET would hold the data you're passing, $_POST would hold data posted from a form that uses the POST method.... just to give you a little background info. ;-)

Share this post


Link to post
Share on other sites
If you are setting a url parameter then you will want to use the $_GET superglobal array:
[code]$gameTag = addslashes($_GET['Gamer_Tag']);
$sql2="SELECT * FROM clan_members WHERE Gamer_Tag='" . $gameTag . "'";[/code]

Share this post


Link to post
Share on other sites

×

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.