Welcome Guest, Not a member yet? Register   Sign In
Named variables in sql query
#6

If you try to insert variable in a string you need to use double quotes. Single quotes will just ignore the dollar sign and take it as literal text.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply


Messages In This Thread
Named variables in sql query - by stepgr - 06-26-2021, 01:03 AM
RE: Named variables in sql query - by InsiteFX - 06-26-2021, 01:51 AM
RE: Named variables in sql query - by stepgr - 06-26-2021, 02:17 AM
RE: Named variables in sql query - by InsiteFX - 06-26-2021, 05:41 AM
RE: Named variables in sql query - by stepgr - 06-29-2021, 06:42 AM
RE: Named variables in sql query - by includebeer - 06-29-2021, 05:41 PM
RE: Named variables in sql query - by php_rocs - 06-30-2021, 06:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB