I am trying to pass the ID of a username through the URL (this part works). Then on to the next page where I display the user's information. However I cannot get the latter part to work correctly. Below is my code
Working URL code:
<a href="memberdetails.cfm?id='#custlist.customerID#'">#custlist.userName#<br />
The non working part:
<cfquery name="custlist" datasource="homesource">
id = $_GET['customerID'] ;
SELECT * FROM customers WHERE customerID = id
</cfquery>
Any help with this problem would be welcomed. I am just starting to learn ColdFusion (like today). This application is just for me playing about, testing the waters. So if possible, no debates on me passing the id through the url.