This question already has an answer here:
- MySQL vs MySQLi when using PHP [closed] 6 answers
Aaalright, i really need some help to this, because im really confused. Im trying to connect to a database on phpmyadmin.
<?php
mysql_connect('localhost', 'root', '');
mysql_select_db('test_database');
?>
Here im using "mysql_connect". When i run it, it says that this extension deprecated/outdated and that i have to use "mysqli_connect".
So now i'm just using the same code as above, but just with the "i" at the end instead.
What am I doing wrong?
In advance, thanks!
PS: My first language is NOT english. Hope you will understand it.