Re: [PHP] A little disturbing query !!!

2005-03-13 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Hello, I have a query that I'm unable to work it out, each time I run it I get some error, I need your help. I have a webtemplates table which contains some basic information about each template (author, price, description, ...etc). I created a search form that a user ca

Re: [PHP] A little disturbing query !!!

2005-03-13 Thread Guillermo Rauch
> Hello, Hi, > $query = "SELECT * FROM templates where ".$_POST[searchtype]." LIKE > '%".$_POST[searchterm]."%'"; Although it works, always put the array index as a string between quotes. $_POST[searchterm] to $_POST['searchterm'] > > But now I need the search to be more advanced, the user may

[PHP] A little disturbing query !!!

2005-03-13 Thread [EMAIL PROTECTED]
Hello, I have a query that I'm unable to work it out, each time I run it I get some error, I need your help. I have a webtemplates table which contains some basic information about each template (author, price, description, ...etc). I created a search form that a user can use to search by type(b