Warning: mysqli::__construct(): (HY000/1045): Access denied for user '[youruserid]'@'webdev.iyaserver.com' (using password: YES) in /home/demos/public_html/json/sql_to_json_example.php on line 12

Fatal error: Uncaught Error: mysqli object is already closed in /home/demos/public_html/json/sql_to_json_example.php:19 Stack trace: #0 /home/demos/public_html/json/sql_to_json_example.php(19): mysqli->set_charset('utf8') #1 {main} thrown in /home/demos/public_html/json/sql_to_json_example.php on line 19