Comments on: How to Connect PHP to MySQL Database https://www.hostinger.my/tutorials/how-to-connect-php-to-mysql Fri, 22 Dec 2023 14:22:36 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Ignas R. https://www.hostinger.my/tutorials/how-to-connect-php-to-mysql#comment-674583 Fri, 19 May 2023 10:49:54 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/how-to-connect-php-to-mysql/#comment-674583 In reply to Gowtham.

Hello there! Usually websites come with a single database. However if you want to connect multiple databases, that’s also possible, but you would need to consult with a developer for more information as that is a custom solution.

]]>
By: Gowtham https://www.hostinger.my/tutorials/how-to-connect-php-to-mysql#comment-672574 Wed, 17 May 2023 08:27:52 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/how-to-connect-php-to-mysql/#comment-672574 how to connect the multiple database in the one web page in hostinger
please guide to do this

]]>
By: Vakarė https://www.hostinger.my/tutorials/how-to-connect-php-to-mysql#comment-319031 Wed, 18 May 2022 11:10:50 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/how-to-connect-php-to-mysql/#comment-319031 In reply to Noel.

Hi! Can you clarify what error message are you getting?

]]>
By: Noel https://www.hostinger.my/tutorials/how-to-connect-php-to-mysql#comment-316851 Sat, 14 May 2022 19:09:46 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/how-to-connect-php-to-mysql/#comment-316851 Hello, I established connection to my database successfully but now trying to insert data from a form is not going through.

]]>
By: Vakarė https://www.hostinger.my/tutorials/how-to-connect-php-to-mysql#comment-290531 Tue, 22 Mar 2022 17:10:50 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/how-to-connect-php-to-mysql/#comment-290531 In reply to Ugwu Franklin.

Hey there, can you clarify where you intend this script to help login?

]]>
By: Ugwu Franklin https://www.hostinger.my/tutorials/how-to-connect-php-to-mysql#comment-288079 Thu, 17 Mar 2022 00:00:04 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/how-to-connect-php-to-mysql/#comment-288079 Hello please can you help me out with a login script that would be suitable in this hostinger hpanel

your registration script was really helpful, thanks

]]>
By: Vakarė https://www.hostinger.my/tutorials/how-to-connect-php-to-mysql#comment-267750 Tue, 25 Jan 2022 12:16:45 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/how-to-connect-php-to-mysql/#comment-267750 In reply to iqbal.

Hi! Yes, you can connect your HTML form to your database using PHP code. You can find a guide on how to create the connection here and another more generic about PHP to MySQL connection here.
In order to create a database on Hostinger, simply follow this guide and then to see how to edit your WordPress in HTML in order to insert the form, check this tutorial.

]]>
By: iqbal https://www.hostinger.my/tutorials/how-to-connect-php-to-mysql#comment-266939 Sat, 22 Jan 2022 05:57:36 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/how-to-connect-php-to-mysql/#comment-266939 Hi, can i know if it is possible for to connect my html form to the mysql database in wordpress through hostinger ? And if it is possible, can i know how to connect it ? I’m really need some help ASAP please.

]]>
By: Vakarė https://www.hostinger.my/tutorials/how-to-connect-php-to-mysql#comment-253500 Wed, 27 Oct 2021 13:40:30 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/how-to-connect-php-to-mysql/#comment-253500 In reply to Koji.

Hi there, your MySQL password should be that of the database you’ve created. Due to security reasons we suggest to never reuse your passwords and have them different. If you need help changing your password have a look at our guide here.
As for the “host”, generally “localhost” should work, but if you’re not able to succeed with it, you can also try out “mysql”. I also suggest to check with our Customer Success team for more urgent assistance 🙂

]]>