Jump to content

How to search mysql database and display results according to query?


jdock1

Recommended Posts

Say a user puts in a support request, and for every request it generates a unqiue string, and enters it into the database.

 

Ok, now say there is a text field, when the user enters their unique string and it finds a match, it displays the data along with it.

 

How can I accomplish this? Im kind of new to mysql, but I know basic SQL.

 

Would be great if somebody could point me in the right direction!

 

Thanks

Link to comment
Share on other sites

No.. I no all of that, I just dont know the SQL to use a search with mysql and displaying a row of data by entering the ID which is a value in the row.

 

Say there are two rows, request_id & msg. The request ID is 28fj3k2. I enter that into a text field, I want to display the other value in the row of that table in the database. I jsut do not know the correct query for that.

 

Anybody?

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.