Jump to content

[SOLVED] Is this the proper way to save only 2 fields on a page?


PWaddict
 Share

Recommended Posts

Hi! Is this the proper way to save only 2 fields on a page via API?

$order->of(false);
$order->pad_user = $u->id;
// Save only the pad_user field
$order->save("pad_user");
$expireDate = date("Y-m-d", strtotime("+1 year", $order->pad_paid));
$order->expire_date = $expireDate;
// Save only the expire_date field
$order->save("expire_date");

 

Link to comment
Share on other sites

  • PWaddict changed the title to [SOLVED] Is this the proper way to save only 2 fields on a page?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...