Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
how to replace STRING in forms in SQL browse with a variable
how to replace STRING in forms in SQL browse with a variable
Please nice - I have one FORM and I need to select data depending on the different values of the variable. How to insert a variable from PHP into this BROWSE? ? ? This is the variable nu_user_name. Thanks for the feedback
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: how to replace STRING in forms in SQL browse with a vari
Hi,
The Hash Cookie #USER_ID# contains the User ID.
Add a JOIN to the table zzzzsys_user and place in the WHERE clause a filter on the zzzzsys_user_id.
Example:
The Hash Cookie #USER_ID# contains the User ID.
Add a JOIN to the table zzzzsys_user and place in the WHERE clause a filter on the zzzzsys_user_id.
Example:
Code: Select all
SELECT * FROM your_table
LEFT JOIN zzzzsys_user ON sus_name = your_table_user_name
WHERE (zzzzsys_user_id = '#USER_ID#')
Re: jak se string ve formulářích v SQL procházet promě promě
dear Kevin1 - thank you very much for your advice - everything works as I needed. You helped an old IT worker. I first started living as an IT in 1987, but now I have been on a disability pension for 15 years. Sometimes, however, I need to make an application for friends as my hobby, but my knowledge is already small ... You helped me very professionally and colleagues. Hats off not only for your knowledge, but also for your willingness to help an unknown colleague! ! ! Thanks Honza Nachtigal