Hello Everyone
I am using this service 000webhosting.com to host my website. When I tried to connect to the database. I got this error
Could not connect to the database a7848759_lumos :SQLSTATE[28000] [1045] Access denied for user 'a7848759_fareedh'@'10.1.1.13' (using password: NO)
This is my code below
`<?php
` $host = 'mysql1.000webhost.com';
` $dbname = 'a7848759_lumos';
` $username = 'a7848759_fareedh';
` $password = '';
`try {
` $conn = new PDO("mysql:host=$host;dbname=$dbname", $username, $password);
` echo "ITS WORKING!!";
`} catch (PDOException $pe) {
` die("Could not connect to the database $dbname :" . $pe->getMessage());
`}
`?>`
Helppp...THANKS