Jump to content

Default value


cdmafra

Recommended Posts

It depends on what you mean by "the user".

 

If you want the DEFAULT setting of a column to use a variable that only exists in PHP then obviously; no you can't do that, you will have to supply the username in your queries.

 

There are systems that use a separate databaseuser for each website user and even they can't use the DEFAULT, but they can use a trigger to fetch the username and fill it in.

Link to comment
https://forums.phpfreaks.com/topic/282126-default-value/#findComment-1449421
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.