mirojantti
New Member
- Nov 30, 2013
- 19
- 0
Hey nerds ! Could someone of you help me a little bit? I'm getting this error:
Fatal error: Call to undefined function toString() in C:\xampp\htdocs\me.php on line 45
Why doesn't my toString() function work? Here's my code below:
Please someone figure this out so I can make that my hotel users get 1 crystal every day. Thanks guys for reading this
Fatal error: Call to undefined function toString() in C:\xampp\htdocs\me.php on line 45
Why doesn't my toString() function work? Here's my code below:
PHP:
$id = $user->id;
$pvm = $user->lastdailycredits;
//Update the record
if($pvm != DateTime.Today.toString("MM/dd")) //This is line 45
{
$updateQuery = "UPDATE users SET crystals = crystals + 1 WHERE id = $id";
mysql_query($updateQuery) or die("Error: ".mysql_error());
}
Please someone figure this out so I can make that my hotel users get 1 crystal every day. Thanks guys for reading this