Jump to content

searching form


hookit

Recommended Posts

Hi,

 

I have a bd with the following fields:

 

Id, state, town, address, day

 

Primary key: id

 

Each field, except id, should has a text field in the php form.

 

Blank inputs are allowed in the form.

 

The search should return the registries that match the inputs in the search. Combining 1 or 2 or 3 fields  or alltogether.

 

Can it be done with php?,  cause i have been told in a Mysql forum that is better done with php.

 

Thanks.

Link to comment
Share on other sites

Can it be done with php?,

 

Yes.  What part are you having trouble with?  I'm not sure exactly what you're trying to ask because I don't see any other questions...

 

cause i have been told in a Mysql forum that is better done with php.

 

As opposed to?

Link to comment
Share on other sites

Hi hookit,

 

Are you trying to add data into the table but you want to check whether those fields are already used to prevent duplicate entries

Each field, except id, should has a text field in the php form.

or are youyou trying to search those fields?

search should return the registries that match the inputs in the search

Link to comment
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.