MySQL Forums :: PHP :: How do I assign unique id to call data?


Advanced Search

How do I assign unique id to call data?
Posted by: Olufemi Adeyemo ()
Date: November 27, 2011 03:56PM

Hi friends,

I need your help concerning this issue. How do I call data of a user from database to appear on a page with an assigned unique id referral link like this:

http://mysite.com/index.php?Id=12345(primary id number in the database)

for each registered user of my site with a common web-page for all? What code do I use?

Although I used the code below it worked fine only when I put the particular member‘s id in the select code:

mysql_query(“SELECT * FROM $tablename WHERE id=12345“) or die (mysql_error());

but I want to use a common page for all members while each of them will have a unique referral id link like the one above assigned to them.

Your assistance will be greatly appreciated. Thank you in advance.

Options: ReplyQuote


Subject Written By Posted
How do I assign unique id to call data? Olufemi Adeyemo 11/27/2011 03:56PM
Re: How do I assign unique id to call data? Rick James 11/29/2011 09:34PM
Re: How do I assign unique id to call data? Olufemi Adeyemo 11/30/2011 03:33PM
Re: How do I assign unique id to call data? Rick James 12/02/2011 07:30PM
Re: How do I assign unique id to call data? Olufemi Adeyemo 11/30/2011 03:09PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.