0

im getting this message all over the place and cant figure out why its happening, any help would be appreciated.

the error message is A non well formed numeric value encountered in

the code where im getting the error message is $stmt->bindParam("ss",$delete, $dateMaker->getTodayDate());

the class im calling is set up very simple return date("Y-m-d");

1 Answers1

1

The 3rd parameter of bindParam must be integer not a date

 public PDOStatement::bindParam ( 
      string|int $param , 
      mixed &$var , 
     int $type = PDO::PARAM_STR , 
     int $maxLength = 0 , mixed $driverOptions = null ) : bool

https://www.php.net/manual/fr/pdostatement.bindparam.php

Dri372
  • 1,275
  • 3
  • 13