Sorry for the possibly misleading subject. The complete question is ¨Anybody run into problems upgrading apache/php?
Here's my problem:
I run several glossary databases using apache/php/postgresql. My queries worked fine with apache 1.3/php4/postgres7.2, but since I upgraded apache to 2.0 my queries return the entire table, instead of select results.
Here is the code used (easy on me... I'm not a coder. I know it's messy :-))
<?
$db = pg_connect("dbname=glossary user=nobody");
$search_query = "SELECT frase, phrase FROM glossary";
if (($frase != "") && ($phrase == "")) {
$search_query .= " WHERE frase ~ '$frase'\;";
}
if (($frase == "") && ($phrase != "")) {
$search_query .= " WHERE phrase ~ '$phrase'\;";
}
if (($frase != "") && ($phrase != "")) {
$search_query .= " WHERE frase ~ '$frase' AND phrase ~ '$phrase'\;";
}
$result = pg_exec($db,$search_query);
...
etc.
I tried playing around with ¨elseif¨ on the second and ¨else¨ on the last if statement, but no luck (in fact, I get an error using ¨else¨ as the last).
No matter what I've tried, I get the entire table returned. This must be something simple, yet I don't really understand why in one version it would work and in another it wouldn't.
Thanks for any help/info.
R.