Jump to content

[SOLVED] Single character wildcard?


Azu

Recommended Posts

Hey guys

When I use the widlcard in MySQL (%) it seems to act as an infinite amount of characters.

 

Please tell me how to wildcard for just a SINGLE character..

 

So like (TES%) should match TEST but not TESTT?

 

And also how can I change the default wildcard in MySQL so that it is * instead? I know I can replace * with % in PHP but this doesn't let me search for %.. I want to be able to use it in WHEREs as a normal character..

Link to comment
https://forums.phpfreaks.com/topic/68983-solved-single-character-wildcard/
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.