I'm a newbie to prepared claims and looking to get something easy to work.

This really is my DB table:

`unblocker_users` (
  `uno` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_email` varchar(210) DEFAULT NULL,
  `pw_hash` varchar(30) DEFAULT NULL,
  `email_confirmed` tinyint(4) DEFAULT NULL,
  `total_requests` bigint(20) DEFAULT NULL,
  `today_date` date DEFAULT NULL,
  `accessed_today` tinyint(4) DEFAULT NULL,)

which is my function to place some test data

function add_new_user($e_mail1)
    {
    require_once "db.php";
// ####### Below line is giving an error ########
$stmt = $mysqli->prepare("INSERT INTO unblocker_users VALUES ("",?, ?,0,0,?,0)");
$stmt->bind_param('sss', $e_mail1, $this->genRandomString(1),$this->today_date()); 

$stmt->execute();

$stmt->close(); 
$done = $stmt->affected_rows;

return $done;
    }

As you can tell above, i've marked the road that's giving me a mistake. The mistake is" Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in..."

Where did Time passes wrong?

This line may be leading to an issue

$stmt = $mysqli->prepare("INSERT INTO unblocker_users VALUES ("",?, ?,0,0,?,0)");

Help you close and open the string again within the values, change "" to '' Thats all I saw from the quick glance.

You've " having a double cited string. PHP thinks

"INSERT INTO unblocker_users VALUES ("",?, ?,0,0,?,0)"

is 2 strings:

"INSERT INTO unblocker_users VALUES ("

",?, ?,0,0,?,0)"

but does not what you would like related to them.

alter the outdoors quotes to single quotes also it should work:

'INSERT INTO unblocker_users VALUES ("",?, ?,0,0,?,0)'

"INSERT INTO unblocker_users VALUES ("",?, ?,0,0,?,0)"

In php if you wish to use double quotes within double quotes, you have to escape the interior ones

"INSERT INTO unblocker_users VALUES (\"\",?, ?,0,0,?,0)"

Or use single quotes as outer ...

'INSERT INTO unblocker_users VALUES ("",?, ?,0,0,?,0)'

... or inner quotes

"INSERT INTO unblocker_users VALUES ('',?, ?,0,0,?,0)"

So far as I understand mySQL use single quotes anyway