I have an integer field in my MySQL domains table called expiresdays.
It is updated with a value of the number of days between field expiresdate and the current date.
This works in phpMyAdmin:
UPDATE domains SET expiresdays = TO_DAYS(expiresdate) - TO_DAYS(curdate()); |
This fails:
$TBS->Execute('UPDATE domains SET expiresdays = TO_DAYS(expiresdate) - TO_DAYS(curdate())'); |
with this message:
Fatal error: Call to undefined function: execute() in /home/forefron/public_html/domtrak/index.php on line 21 |
What am I doing wrong?