MySQL with 000webhost

did you follow the Setup?


  • Put the PHP code on your web server
  • Set the SQLKEY in your app and in the PHP code, they must match for this code to work
    Note : Don’t use special characters, see also here.
  • Setup your database connection information in the php script
  • Try out the code

especially Don’t use special characters for the SQLKEY


@shoryu Please don’t share sensitive credentials.
Database username, Database password , SqlKey and Website URL should be limited only to you.

Try changing your query to INSERT INTO tab(id,desc,price) VALUES(2,“bbb”,1.0).

Sorry, it was just a test bank that got deleted minutes later.

Same mistake. In fact, it looks like 000webhost doesn’t allow you to create passwords without special characters. As Taifun mentioned, they shouldn’t be used. I think that’s the problem.