mysql - php?cmd=SELECT 1+1 not found and SELECT 1-1 it works -


please , need , simple , can not find reason , sending query php return json , simple sum of value field or other value not realize , subtractions if , what's up? ...//www.mipagina.com.mx/consultas.php?cmd=select 1+1 select 1 1\nyou have error in sql syntax; check manual corresponds mysql server version right syntax use near '1' @ line 1 ...//www.mipagina.com.mx/consultas.php?cmd=select 1-1 [{"1-1":"0"}] ...//www.mipagina.com.mx/consultas.php?cmd=select cantidad + 1 timbres id = 2 select cantidad 1 timbres id = 2\nyou have error in sql syntax; check manual corresponds mysql server version right syntax use near '1 timbres id = 2' @ line 1 ...//www.mipagina.com.mx/consultas.php?cmd=select cantidad - 1 timbres id = 2 [{"cantidad - 1":"24"}]

you need url encode sql query - + sign interpreted space in url. if you're manually encoding it, you'd need replace + sign %2b


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -