How do I link my database with my script?


How do I link my database with my PHP script?
 
To link your database with your PHP script, you can use the following code:
mysql_connect(“localhost”,”admin”,”password”);
 
Replace:
‘localhost’ > to the name of the database server
‘admin’ -> to the login created for your database
‘password’ -> to the password linked to your login for your database.
 
Where can you find this information? Take a look here: How do I use a database in my website?
 
How do I link my database with my PERL script?
To link your database with your Perl script, you can use the following code:
DBI->connect("DBI:mysql:database:localhost",”admin”,”password”);

Replace:
‘localhost’ > to the name of the database server
‘admin’ -> to the login created for your database
‘password’ -> to the password linked to your login for your database.
 
Where can you find this information? Take a look here: How do I use a database in my website?