bamboozled
Hi All, I'm moving over from ASP to PHP so I'm not that great.
I was going along nicely now all the pages I created before with parameter queries are flagged as faulty by dreamweaver. So I go in and edit the server behavior and dreamweaver does this
$colname_rsResources = "-1";
if (isset($_GET['id'])) {
$colname_rsResources = $_GET['id'];
}
$colname_rsResources = "-1";
if (isset($_GET('id'))) {
$colname_rsResources = (get_magic_quotes_gpc()) ? $_GET('id') : addslashes($_GET('id'));
}
Which obviously fails
So I delete the top code and I get server errors, then deleted the new code generated by dreamweaver leaving the old code and it works.
Whats going on here?????????????
Cheers
Rem
