Jump to content

Assign a variable a function value


arccomp

Recommended Posts

OK -

 

I am really new to PHP but getting better and working on modifying it a little bit. I have added a date field to the table and need to load the current date/time to it. I have a set of lines of code that assign values to the same table. If I knew how to read the current lines of code, I may be able to write the one that I need. The existing examples of code in this section are:

 

$ob_email->sender_from_name = $ob_utility->sqlQuote($login_user_name, $ob_email->db);

$ob_email->file_name_list = $ob_utility->sqlQuote($file_name_list, $ob_email->db);

$ob_email->file_size_list = $ob_utility->sqlQuote($file_size_list, $ob_email->db);

 

The new field name in the table is $created_on and I need to just assign it the current date and time - the format is YYYY-MM-DD if it matters.

 

Thanks for any help in getting this done. And if the replies could give me the sentence in words that explain what the code above means too, it would help me in the future to do this on my own.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.