Jump to content

Recommended Posts

hey guys

im trying to get my search to work from 3 text boxes now, it worked perfectly with 2 text boxes, i.e. location and trade type, as seen fromthe screen shot which shows the webpage view, and the code that is relevant to the search.

 

i have tried to get teh search to work with 3 textboxes, by adding the following:

$search1=$_POST["search1"];
$search2=$_POST["search2"];
$search3=$_POST["search3"];

$result = mysql_query("SELECT * FROM mytable WHERE location LIKE '%$search1%' AND type LIKE '%$search2%' AND name LIKE '%$search3%' ");

 

and heres the screen shot:

 

searchadminke4.th.png

is this all that is neccessary fo it to work with teh threetext boxes?

 

the name "search3" relates to the name of the new textbox.

 

thanks for the help guys,

steve

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/92178-sqlphp-help/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.