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
269 stars 77 forks source link

🐛 `read.php` not using DB Prefix #51

Closed AyhamAl-Ali closed 1 year ago

AyhamAl-Ali commented 1 year ago

I enountered an issue with read.php not using the database's prefix that was setup in config/environment.php which caused it to fail grabbing the QR Code

Related Code: https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/blob/c6cb83638a7c8a5a6aec39a04ff0d852a8a15ac1/read.php#L18-L21

giandonatoinverso commented 1 year ago

You're right... the name of the table is hardcoded. Can you edit this code including this global variable: DATABASE_PREFIX.

Thanks

AyhamAl-Ali commented 1 year ago

Sure, I will open PR in a bit