Question
using a url parameter to define field in MySQL recordset
I'd like to pass a url parameter from a matser page to detail
page which will define the field used within a query. I have been
trying but with no succes by adding the PHP code in the recorset
within code view.
here's the code I end up with:
SELECT <?php echo $_GET['name']; ?>
FROM rota
WHERE <?php echo $_GET['name']; ?> = 'HOL'
Can anyone help me refine it so that it works.
Cheers
Dave
here's the code I end up with:
SELECT <?php echo $_GET['name']; ?>
FROM rota
WHERE <?php echo $_GET['name']; ?> = 'HOL'
Can anyone help me refine it so that it works.
Cheers
Dave
