Home › Forums › Back End › PHP and MySQL for beginners? › Re: PHP and MySQL for beginners?
Also im having trouble with the following code from w3schools
I fill in the top line with the info when I created a mysql user but then leave the rest, it says cannot create database or something, do i have to change my_db or should it work like that. I know I will change it when I add more or with other projects but it should work, right?
Thanks, Michael
No, WAMP isn’t necessary if you already have these features on an online webserver. WAMP is like a webserver, but you run it locally not on your actual website.
Are your connection details right? (remember that every webserver is localhost to itself)
If yes, maybe your PHP settings are stopping the script from creating a database (generally a lot are disabled for security reasons)