Re: [phplib] I don't find the problem - From: Steve Edberg (sbedberg <email protected>)
Date: 04/23/01

At 3:30 PM -0400 4/23/01, GWBAG <email protected> wrote:
>Hi,
>
>i get a parse error problem on line ' ...where... like ...... . Anybody knows
>where's the problem.
>Thanks. Ralf
>
>
>
>$ObjTyp = array("'Ein%'" , "'%Bau%'");
>$string = implode(" or ObjArt like ", $ObjTyp);
>if (trim($ObjArt)=="Wohn") $ObjArt = "$string";
>if (trim($ObjArt)=="%") $ObjArt = "%";
>echo $string;
>
>$result=MYSQL_QUERY( "SELECT * FROM $tabelle where ObjArt like "'$ObjArt'" &&
>......

Remove the double quotes around '$ObjArt':

$result=MYSQL_QUERY( "SELECT * FROM $tabelle where ObjArt like '$ObjArt' &&

I can't see any other syntax problems.

-- 
+---------- KDVS 90.3fm Annual Fundraiser : 16 - 22 April 2001 ----------+
| Steve Edberg                           University of California, Davis |
| sbedberg <email protected>                               Computer Consultant |
| http://aesric.ucdavis.edu/                  http://pgfsun.ucdavis.edu/ |
+----------------------------- www.kdvs.org -----------------------------+

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>