I wanna to save some data on my host database on php
<?php
$username='xxxxx';
$password='xxxxx';
try {
$dbh=new PDO("mysql:host=mysql5.000webhost.com;dbname=a4450160_android",$username,$password);
$result ="INSERT INTO user (fullname, username, password, phone, email)
VALUES ('zahra', 'mhd', '123', '1234567896', 'zahra@yahoo.com')";
/*** INSERT ****/
$count=$dbh->exec($result);
echo 'success';
/*** close connection ***/
$dbh=null;
}catch(PDOException $e) {
echo $e->getMessage();
}
when I test it on my localhost it work fine but on the host it does not work. please help .