Jump to content

[SOLVED] Help with LIKE %


Riparian

Recommended Posts

Thank you very much for the reply Mchl

 

Could you possibly give me an example where i could match the last digit to any alpha (not number)

 

I have been trying all afternoon using _ and things like REGEXP '^$model.{1}$' but I cant get the desired results.

 

Cheers

Sorry ... Mistakenly added a $ to the Model_number field in the first reply

 

Thanks for the help.

 

I have tried every combination and only get Parse errors.

 

Could you please advise me where this is going wrong

 

$sql="select * from $table  WHERE model_number RLIKE '$model_number[[a-z]]' and in_stock='T' ";

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.