Derek
10-12-2004, 02:33 AM
I'm playing around with creating a database driven website in Dreamweaver MX 2004 - not something i have done before.
I have search.php with a form and couple menus for the user, and results.php for displaying. It will search MySQL 'bikes' database for MAKE and MODEL.
In search.php, the 2 drop-menu objects in form1 are called 'make' (with values Honda, Kawasaki) and 'model' (with values CBR900, ZZR1100).
The problem arrives with the recordset on results.php
- it works fine if i have sql statement as:
SELECT bikes.make, bikes.model, bikes.style, bikes.engine, bikes.year FROM bikes WHERE bikes.make = 'Honda' AND bikes.model = 'CBR900'
... but when i change it to variables, it wont work:
SELECT bikes.make, bikes.model, bikes.style, bikes.engine, bikes.year FROM bikes WHERE bikes.make = 'varMake' AND bikes.model = 'varModel'
I think the problem is not knowing how to enter the info in the variable box. Have read the help files but it only seems to want to tell me about ASP.NET
I tried
Name:varMake
DefaultValue:%
Run-time Value:#Make# ...but its a no-go
Anyone got an idea here please? :)
I have search.php with a form and couple menus for the user, and results.php for displaying. It will search MySQL 'bikes' database for MAKE and MODEL.
In search.php, the 2 drop-menu objects in form1 are called 'make' (with values Honda, Kawasaki) and 'model' (with values CBR900, ZZR1100).
The problem arrives with the recordset on results.php
- it works fine if i have sql statement as:
SELECT bikes.make, bikes.model, bikes.style, bikes.engine, bikes.year FROM bikes WHERE bikes.make = 'Honda' AND bikes.model = 'CBR900'
... but when i change it to variables, it wont work:
SELECT bikes.make, bikes.model, bikes.style, bikes.engine, bikes.year FROM bikes WHERE bikes.make = 'varMake' AND bikes.model = 'varModel'
I think the problem is not knowing how to enter the info in the variable box. Have read the help files but it only seems to want to tell me about ASP.NET
I tried
Name:varMake
DefaultValue:%
Run-time Value:#Make# ...but its a no-go
Anyone got an idea here please? :)