# Problem with PHP!

**URL:** https://forum.infinityfree.com/t/problem-with-php/74954
**Category:** Hosting Support
**Created:** [April 18, 2023, 11:43am UTC](https://forum.infinityfree.com/t/problem-with-php/74954 "2023-04-18T11:43:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![anon96159616](https://forum.infinityfree.com/letter_avatar/anon96159616/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon96159616](https://forum.infinityfree.com/u/anon96159616)
#### Post date: [April 18, 2023, 11:43am UTC](https://forum.infinityfree.com/t/problem-with-php/74954/1 "2023-04-18T11:43:08Z")

</div>

I wanted to start a new work, but in PHP I get an error like the one on the screen and it says database error, then how can I fix it? can you help me?

> **[Screenshot](https://prnt.sc/WO6NWSfR8Xoz)**
>
> Captured with Lightshot

> **[Screenshot](https://prnt.sc/u73Kwkp9B9Ic)**
>
> Captured with Lightshot

> **[Screenshot](https://prnt.sc/l-nrfn8EUgdB)**
>
> Captured with Lightshot

---

<div class="post-metadata">

### Author: ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)
#### Post date: [April 18, 2023, 11:59am UTC](https://forum.infinityfree.com/t/problem-with-php/74954/2 "2023-04-18T11:59:11Z")

</div>

> [@anon96159616](#):
>
> how can I fix it?

No idea. You need to provide more info.  
Just saying database error is not helpful at all.

This may help

> [@Common MySQL Connection Errors](https://forum.infinityfree.com/t/common-mysql-connection-errors/49338/):
>
> Many websites use MySQL databases to store information and settings. However, there are some reasons why the connection to the database may fail. This article describes some commonly seen error messages when connecting to a database, as well as some general tips to keep in mind when setting up a database connection. Common Error Messages Using MySQL is great, but the error message returned if there is an issue logging in to your database can be quite confusing. Here are some commonly seen error…

---

<div class="post-metadata">

### Author: ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)
#### Post date: [April 25, 2023, 11:59am UTC](https://forum.infinityfree.com/t/problem-with-php/74954/3 "2023-04-25T11:59:32Z")

</div>

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