on-internet
← Community

How can I optimize my database setup program?

Stack Overflow ·

I've written a web page in php that sets up a database locally for my site to pull from while I'm working on it, and I'm struggling to find a generally accepted standard for this sort of thing. It's my first time messing with this sort of thing, and I would like to check if I've done it the 'right' way and not a really messy roundabout way that adds 70% more lines of code to the page. I'm using mysql and php to do all this. Here is the code: <?php $host = "localhost"; $user = "root"; $password = ""; // Connect to MySQL server $conn = new mysqli($host, $user, $password); if ($conn->connect_erro

Comments

Sign in or sign up to comment and upvote.

No comments yet.