Page 1 of 1

List menu - Help!

Posted: Thu Mar 03, 2011 8:25 am
by cnl83
I have a list menu that is populated with mysql data. It's a list of customers. When you make a selection, I want a page to show all of the data about that particular customer. Im not sure how to accomplish this. Should I be passing variables through the browswer, or what?

Im using Dreamweaver cs 4.

Thank you in advance!

Re: List menu - Help!

Posted: Thu Mar 03, 2011 10:48 am
by social_experiment

Code: Select all

<a href="page.php?id=5">To ID 5</a>
You have to use $_GET. The value '5' will this be example will be in $_GET['id'] (your example will differ). Once you have that value you need to sanitize it, make it safe to use in a query (mysql_real_escape_string()). Do you have any code that you can paste?