https://antibiotiqueaugmentin.com/surdosage-augmentin-bebe/

id=@user_id

  • prev639367
  • prev639367's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 9 months ago #2672

bonjour

Je souhaiterais savoir quelle valeur est remonté via la commande where id=@user_id ??? L'id de la table users de Joomla ou le username ???

Merci

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #2675

Bonjour. My French is not good.

I understood your question as:
I would like to know what value is recovered via the command where id = @ user_id?? The id of the users of Joomla or username? Table?

Based on my experience as a user, the 'id' would be your database field name and the 'user_id' is the numeric number of the Joomla user.

So I use for example where userid = @user_id and by that the userid is a field in my DB which has user numbers in it. This then will show the ones relating to the current logged in user.

The following user(s) said Thank You: tomaz, prev639367

Please Log in or Create an account to join the conversation.

  • prev639367
  • prev639367's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 9 months ago #2677

Thanck's I try.

Please Log in or Create an account to join the conversation.

  • prev639367
  • prev639367's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 9 months ago #2678

:( Ok i cant.

I make a grid on this table (french in text) jos_contrats, database name is bpo. and in jos_contrat i have 'id' same of 'id' in my table bpo.jnew_users.

for you wath is the syntax for the user sees only his data.

Sorry for my English if you prefer in french say that

Thank's

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #2681

Hi,

This if you create a grid on table jos_contrats and your column id corresponds to the id of the joomla user the syntax would be:

id=@user_id

But be aware that @user_id allways corresponds to Joomla users table which is usualy jos_users.

I hope this was of some help.

Please Log in or Create an account to join the conversation.

  • prev639367
  • prev639367's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 9 months ago #2683

:laugh: Yes is work !!!!

Thank's

Please Log in or Create an account to join the conversation.

Moderators: tomaz
Time to create page: 0.143 seconds

Contact Us

Contact us on Discord

Contact us on Facebook