How to make a connection to a database?

Hi Folks!

I wnat to start with using a database. This would be mysql. Now my goal is to store urls evetnuellay but now at first I would like to know how to start using a datbase cq connecting to it.

Can anyone help?

If you need more info please ask,

Kind regards,

Dweeep
PeterdeBAsked:
Who is Participating?
 
yo_s_cantaConnect With a Mentor Commented:
with php

<?php
mysql_connect("localhost", "admin", "1admin") or die(mysql_error());
echo "Connected to MySQL<br />";
?>

Open in new window

0
 
hernst42Connect With a Mentor Commented:
Start at http://www.php.net/manual/en/ref.mysql.php#mysql.examples

If you are on windows try using a complete WAMP-Stack for your development like http://www.wampserver.com or http://www.apachefriends.org/en/xampp-windows.html
0
 
PeterdeBAuthor Commented:
Thanks!
0
All Courses

From novice to tech pro — start learning today.