$toolTip_inner.load('ajax/fetchUser_data.php',{ id: $tooltipText });
I am trying to load the content of the php file to toolTip_inner and passing the parameters..
The file fetchUser_data.php executes a mysql statement and retrieves, but before that it goes to this statement:
if( isset($_GET["id"]) )
{
and never goes to into the if condition, why is that?!??
You already answered your own question: the
ifstatement in your PHP code is not being triggered, which automatically implies that$_GET['id']is not set.The jQuery documentation on
.load()is quite clear on this:Since you are supplying
idas an object, it will be available in$_POST.