I am receiving data from my database but i cannot store it there. It works well on local host but not on 000webhost.Please help me.
There’s somewhere between 10 and 20 different things that could cause the symptom of an insert query not working. You would need to post the code needed to reproduce the problem (less any database connection credentials), in order to even narrow down the problem to a few things to investigate further.
first ask for erros
$pdo = new PDO('mysql:host=localhost;dbname=someTable', 'username', 'password', array(
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
));