Dear all,
I am doing a search engine, and I have a problem, I need to check which of the checkboxes has been checked. According to the checkbox checked, the search engine will search a specific content of a field of my database.
But the script I wrote doesn´t work.
[code=php]$request="selec t * from tablabu where (";
if ($_POST['Picture'] == "on"){
{$request=$requ est." `tablabu`.`Kind _of_document` LIKE 'PI') OR ("; }
if ($_POST['Video'] == "on"){
{$request=$requ est." `tablabu`.`Kind _of_document` LIKE 'VI') ;OR ("; }
ETC...[/code]
Thanks a lot for your help
I am doing a search engine, and I have a problem, I need to check which of the checkboxes has been checked. According to the checkbox checked, the search engine will search a specific content of a field of my database.
But the script I wrote doesn´t work.
[code=php]$request="selec t * from tablabu where (";
if ($_POST['Picture'] == "on"){
{$request=$requ est." `tablabu`.`Kind _of_document` LIKE 'PI') OR ("; }
if ($_POST['Video'] == "on"){
{$request=$requ est." `tablabu`.`Kind _of_document` LIKE 'VI') ;OR ("; }
ETC...[/code]
Thanks a lot for your help
Comment