Jump to content

How can I make this query work?


XTSR

Recommended Posts

So I have made a query to retrieve some results in the database we made for the project but it only returns results when I only search for the first name, it doesn't retrieve results when I search for a last name or a complete name.

 

Disclaimer: I am a novice in PHP and Mysql

 

Here is the query:

 "SELECT * FROM tblparents WHERE strFirstName LIKE '%{$strSearchMe}%' OR strLastName LIKE '%{$strSearchMe}%'"

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.