Jump to content

Plus sign in a variable


cdjohn

Recommended Posts

I am passing a variable called printer to a search:-

 

$query = "SELECT iatcode,manuf,printer,description,colour,sell,lcap,category, Comporig FROM products where manuf = '".$picture."' and printer = ' ".$printer." ' order by Comporig, printer

 

If the passed variable printer contains a plus (+) sign then no results are returned. How can I recode the statement to allow such a search?

Link to comment
https://forums.phpfreaks.com/topic/50063-plus-sign-in-a-variable/
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.