Hello, I have a URL I'm trying to pull the ID and memberid from.
In Need Of PHP Help Please
6
Hello,
I have a URL I'm trying to pull the ID and memberid from.
ezcapturepage.com/custom.php?id=17&thememberid=snotb4ll
I'm trying to pass the information over to this page.
ezcapturepage.com/otopage.php
I have the memberid working fine using a session I just cannot get the ID in the URL to also pull in so I can include it in a link on the otopage.
Here is the code I have so far.
I have a URL I'm trying to pull the ID and memberid from.
ezcapturepage.com/custom.php?id=17&thememberid=snotb4ll
I'm trying to pass the information over to this page.
ezcapturepage.com/otopage.php
I have the memberid working fine using a session I just cannot get the ID in the URL to also pull in so I can include it in a link on the otopage.
Here is the code I have so far.
PHP Code:
<?PHP
session_start();
$thememberid = $_SESSION['thememberid'];
$pageid = $_SESSION['pageid'];
include "config.php";
$getpaypal = mysql_query("SELECT paypal_email FROM members WHERE userid='$thememberid'");
$getpaypalresult = mysql_fetch_array($getpaypal);
$commissionpaypalemail = $getpaypalresult["paypal_email"];
if($commissionpaypalemail=="") $commissionpaypalemail="snotb4ll@yahoo.com";
$getpageid = mysql_query("SELECT * FROM custompages WHERE id='$pageid'");
$getpageidresult = mysql_fetch_array($getpageid);
$thepageid = $getpageidresult["id"];
?>
- peteJ
- RuiGomes
- burton247
- lluporini
- jamesc1985
Next Topics on Trending Feed
-
6