AliceAmphetamine Posted January 15, 2010 Share Posted January 15, 2010 I am working on writing a Affiliate system to keep track of both how many clicks an affiliate on my site gets, and how many visits I get from an affiliate. Thing is I am having trouble with one thing. Upon them submitting their information to the mysql database, I want to echo the uses id in a url that they will need to use when placing my link on their page. So user submits info. User gets issued id number 336 I want the message that tells them the information was submitted correct that hey here is the link i need you to use http://www.mysite.com/affiliates/click.php?mode=in&id=336 But I am having a problem just brainstorming how I can retrieve the id right off the bat as the information is just being submitted. Is this even possible to do? If so rather than giving me the source code for it, Could you please provide any links that would help or an explanation so I can get a starting point. Quote Link to comment Share on other sites More sharing options...
Buddski Posted January 15, 2010 Share Posted January 15, 2010 As requested mysql_insert_id Quote Link to comment Share on other sites More sharing options...
AliceAmphetamine Posted January 15, 2010 Author Share Posted January 15, 2010 Buddski, Thank you for your very quick response to my question and providing me a link so that I can read up on this. I greatly appreciate it. Have a wonderful day! =) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.