mac-in-the-mountains wrote:
> It's the column name that I was hoping to uset he URL
parameter to dictate
> which will save me creating zillions of pages to deal
with each column.
>
> Is that possible or do I have to specify it exactly by
name?
No, it's possible, if that's what you want/need to do. I
suspect your
problem is that you're adding PHP tags in the middle of code
that's
already being generated by PHP. You can't nest PHP tags.
Let's say your SQL query generated by DW looks like this:
$query_recordsetName = "SELECT columnName FROM rota WHERE
columnName =
'HOL'";
You need to change it like this:
$columnName = mysql_real_escape_string($_GET['columnName']);
$query_recordsetName = "SELECT $columnName FROM rota WHERE
$columnName =
'HOL'";
--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/