Warning when string quote not properly closed
Database management in a single PHP file
Brought to you by:
jakubvrana
This query:
UPDATE home
SET importLocation = 'Other Places in Bangkok' WHERE
importLocation = 'Wat Tha Phra, Bangkok Yai, Bangkok' OR
importLocation = 'Wong Sawang, Bang Sue, Bangkok
generates this warning:
Warning: Uninitialized string offset 0 in C:\xampp\htdocs\qqq\db.php on line 1584
Of course, the reason is because the last string is missing the closing quote but still, the error is not handled
This is fixed in my fork: https://github.com/pematon/adminer