This topic is locked

Before Add Record Event

7/15/2006 2:29:19 PM
PHPRunner General questions
W
warrenk author

I am try to add a OR condition and get the following error...
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/reviews/public_html/phprunner/include/brands_events.php on line 12
$strSQLExists = "select * from brands where brand_pname=".$values["brand_pname"] " or brand_name =".$values["brand_name"];
When I try the above command without the OR condition it works fine...any suggestions?
Thanks,

Warren

kujox 7/16/2006

$strSQLExists = "select * from brands where brand_pname=".$values["brand_pname"] " or brand_name =".$values["brand_name"];


I think you might have missed out a dot, just before the 'or'.

W
warrenk author 7/16/2006

Thanks Kujox....it worked. Appreciate your help!
Warren

kujox 7/16/2006

No prob, just glad to help, I've have enough on this site in the last few weeks <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=9862&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />