-3
does not insert any information in the database from the error below:
Fatal error: Uncaught Error: Call to a Member Function prepare() on null in C: xampp htdocs LOGIN SCREEN classes videos.php:11 Stack trace: #0 C: xampp htdocs LOGIN SCREEN php addGaleria.php(25): Videos->register('escola_online', '127.0.0.1', 'root', ') #1 {main} thrown in C: xampp htdocs LOGIN SCREEN classes videos.php on line 11
The values are going without Quotes to the bank, can’t that be the problem? because they are strings
– DbaAlone
so I put it but still, it doesn’t insert!
– Rafael Saugo
but the error does not yet insert in the bank!!!
– Rafael Saugo
bindValue is with single quotes too
– DbaAlone
debug it, print the string it creates with VAR_DUMP() and ask the question
– DbaAlone