rene.brodmuehler@gmail.com
Member
Dear All
Can I use placeholders in SQL statements? And if yes - how does this work. I would like to use the users ID to filter in a WHERE statement:
WHERE {thistable}.User_Id = 4169, and that works.
When I replace the fix number with a placeholder:
WHERE {thistable}.User_Id = '{$my->id}'. then that does not work.
Could you please tell me what is wrong.
Many thanks and best regards
René
Can I use placeholders in SQL statements? And if yes - how does this work. I would like to use the users ID to filter in a WHERE statement:
WHERE {thistable}.User_Id = 4169, and that works.
When I replace the fix number with a placeholder:
WHERE {thistable}.User_Id = '{$my->id}'. then that does not work.
Could you please tell me what is wrong.
Many thanks and best regards
René