Jump to content

[SOLVED] Query % needs a replacement, ty


Thundarfoot

Recommended Posts

I am working with this query, particularly the $name% the $name gets filled from a drop down form.

 

$query_Cards = "SELECT Name, `Class`, Drops, Details FROM skill_cards WHERE skill_cards.`Class` LIKE '$name%' ORDER BY Name ASC";

 

The fields use a period . between names and can have 1 name or many names.

 

name1. name2. name3

 

If $name = name 2 or 3 then no records are returned

 

I can change the . to anything other than a comma if that will help.

 

Thank you in advance for your time and any help you can lend

Link to comment
https://forums.phpfreaks.com/topic/87708-solved-query-needs-a-replacement-ty/
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.