I am trying to build a small website using PHP and MySQL serve as the database. Can anyone tell me how to connect to MySQL database using PHP and is it similar to using Access because I have succeeded in doing that. Thanks
achiman
0
Junior Poster in Training
Recommended Answers
Jump to PostHey.
I recommend you try the improved MySQL extension, rather then the old MySQL functions.
<?php $dbLink = new mysqli("host", "user", "password", "database"); if(mysqli_connect_errno()) { die("MySQL connection failed: ". …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.