Not insert data into database

Posted September 2, 2021 142 views
UbuntuApachePHPUbuntu 20.04

When we try to add or insert any row using php .its does not work please help me while insert in local machine

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


There could be many reasons on why this does not work:

  • Make sure that your SQL service is up and running
  • Make sure that your database connection details are correct
  • Enable debug mode to see the exact error that is occurring

Can you share the exact error that you are getting?

Also if possible, can you please share the code snippet that you are using to do the import?