giandonatoinverso / PHP-Dynamic-Qr-code

PHP Dynamic Qr code is a script that allows the generation and saving of dynamic and static QR codes
MIT License
268 stars 76 forks source link

Error on install/setup.php #99

Closed zzzooorrrx closed 5 months ago

zzzooorrrx commented 5 months ago

Hello, I try to install the code manually on my webserver. PHP 8.1 / Apache Webserver / DB-name and user: 83-qrcodedb • Pointed the new subdomain to /src directory • Created a new DB • Filled DB credentials into config/environment.php • Called mysubdomain/install/setup.php

Error occured: Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '83-qrcodedb' at line 1 in /var/www/JLutz/htdocs/QRCodeMaster/src/install/includes/database_class.php:15 Stack trace: #0 /var/www/JLutz/htdocs/QRCodeMaster/src/install/includes/database_class.php(15): mysqli->query('CREATE DATABASE...') #1 /var/www/JLutz/htdocs/QRCodeMaster/src/install/setup.php(40): Database->create_database('localhost', '83-qrcodedb', 'mysuperduperpw', '83-qrcodedb', '3306') #2 {main} thrown in /var/www/JLutz/htdocs/QRCodeMaster/src/install/includes/database_class.php on line 15

Need help with this. Thx

giandonatoinverso commented 5 months ago

From the stack trace alone I don't know how to help you. It's not a script problem because I periodically do installations and it works.