Jump to content


Link help


  • Please log in to reply
2 replies to this topic

#1 Guest_PcGamerz13_*

Guest_PcGamerz13_*
  • Guests

Posted 20 March 2006 - 04:36 PM

Fixed

#2 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 20 March 2006 - 04:48 PM

$sql2="SELECT * FROM clan_members WHERE Gamer_Tag='" . $_REQUEST['Gamer_Tag'] . "'";

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. ;-)

Info: PHP Manual


#3 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 20 March 2006 - 04:49 PM

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





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users