Can't seem to connect to MySQL

Website URL

https://dragonstoneeduv36336.infinityfreeapp.com/

Error Message

The only visible error message I can see in the Browser console is Fetch error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Other Information

I believe this is related to MySQL because it seems like it is reading or not reading the information in the database properly, I have triple checked and made sure that everything to establish a connection is correct but I still can’t seem to access the database.

Welcome to the forum!

This might help us:

Fatal error: Uncaught mysqli_sql_exception: Table ‘if0_40970536_ecommerceplatform.Product’ doesn’t exist in /home/vol1_4/infinityfree.com/if0_40970536/htdocs/get_products.php:17

8 Likes

Hi, thank you so much for your response. The error made me realize that the table names were capitalized when they should not have been!

Can I just ask what you did to find that error? So that if something like that happens again I am better equipped to handle it.

1 Like

Nothing fancy. Just follow your code, the same way you check the console, it will give you hints.

In case errors are suppressed, always enable PHP debug mode while still in development.

These might help you too:

Also, you can always search this forum! Surprisingly, I found just now the same problem and SAME solution:

6 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.