Confused about default values when using WHERE statement.
Moderator: General Moderators
Yup, setting that to "false" fixed the issue.
Regarding the SQL not being picked up, do you think this Dreamweaver-generated code has anything to do with it?There is a list of these that appear near the top of the code on my page. There is one for each variable used on the form EXCEPT the variables that we are adding. What do you think??
Regarding the SQL not being picked up, do you think this Dreamweaver-generated code has anything to do with it?
Code: Select all
$category1_rs_members = "%";
if (isset($_GET['category1'])) {
$category1_rs_members = (get_magic_quotes_gpc()) ? $_GET['category1'] : addslashes($_GET['category1']);
}What do you mean by SQL not being picked up?
That code you showed does this:
That code you showed does this:
Code: Select all
- Initializes $category1_rs_members to a value = "%",
- If there is a GET variable called "category1":
- if get_magic_quotes_gpc() returns true, $category1_rs_members get's the value of the GET variable
- otherwise $category1_rs_members gets the value of addslashes(the GET variable)Real programmers don't comment their code. If it was hard to write, it should be hard to understand.