deadlyhifi wrote:
> Is there a way to say:
>
> if 'data_region' exists use the information that it
passes,
> else use '?data_region=ALL'
Yes, there is. Dreamweaver should take care of this for you,
but the
recordset code ignores the default value.
Change the following section from this:
> $region = "ALL";
> if (isset($_GET['data_region'])) {
> $colname_rs_video = (get_magic_quotes_gpc()) ?
$_GET['data_region'] :
> addslashes($_GET['data_region']);
> }
To this:
$region = "ALL";
if (isset($_GET['data_region'])) {
$colname_rs_video = (get_magic_quotes_gpc()) ?
$_GET['data_region']
: addslashes($_GET['data_region']);
}
else {
$colname_rs_video = "ALL";
}
--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/