var_dump($num); The result is boolean false
You can insert it by executing the sql statement directly in the database. php.ini expands normally.
Actually, there is no problem. I just missed a field. Look at what you wrote, are there any details that you didn’t notice
You didn't find the root cause. I have the same problem and I didn't find the root cause either. CamelCase variable naming has no effect at all. Mine cannot be inserted normally if the $createTime parameter is added. If the content of this field is not inserted, it can be inserted normally
Camel case naming is not supported. Variable names can only be in lowercase. For example, it is not possible to write $dbtype as $dbType. What is the reason?
$dsn="{$dbtype}:host={$host};dbname={$dbname}";
Finally found the reason. There can't be any spaces in it. It doesn't work if there are spaces.