This video will discuss how to create a database using PhpMyAdmin and connect to that database using PHP- mysqli. Syntax is discussed as well as some best …
source
This video will discuss how to create a database using PhpMyAdmin and connect to that database using PHP- mysqli. Syntax is discussed as well as some best …
source
29 responses to “Connect to MySQL with PHP in XAMPP / Create a new database”
really …thanks a lot !!!!!!!Your work is appreciable….it seemed so difficult but you made it easy 🙂
I hope you will make more such videos
all the best
 my result not
well i tried to connect to databse in xampp through brackets but it gives me error , while i verified that php code like echo" xxxx"; runs well, but could not connect with the database ,always get some error please help
Question: What's the best way to manage dabase connections in PHP?
nicely explained.
thanks ..
If i change my port for phpmyadmin,do i have to specify in the code too? or 'localhost' is all i need to write?
thanks man 😉
Do you have other videos for this topics?
DUDE! Thank you!
nice
nice video
Finally code that works!
Very helpful video! Thank you so much!
it is unable to load once database is added to it
i got one error Fatal error: Class 'mysql' not found in C:XAMPPhtdocstestconnect.php on line 9
on the line $db = new mysql('localhost', $user, $pass, $db) or die("unable to connect") ;
does anybody know how to do it with a Mamp on a mac?
my minits not wasted here, thaksn
tnx
Thank you, great video.
Thanks so muchhhhh!!!
I am unable to connect my database. it gives me error your php server doesn't have mysql module loaded or you cant use the mysql_(p) connect fuctions..can u suggest why?
get the code bro!
website doesnt work, anyone know how to fix it?
I'm confused. You have two variables called $db. Why doesn't that cause an issue?
thank you very much 🙂 …!!!
:v
helped me with my pokemon go server! thnx!
I installed the xamp program on my own pc using Windows 10 and all seems fine and up and running but when i connect the mysql and follow your instruction its seems i am getting an error. I am not sure as to what is wrong here but something is telling me the directory folder for this script is incorrect.
If i write basic php script all goes to plan using xamp but soemthing is telling me that the url of the data base is incorrect
Any ideas?
thanks a lot.