You actually can Google but you can go try to learn at the links below:
And you need to learn sql too. For sql, this links can help you:
Hope this links will make your job easier.
And a quick tutorial by me:
mysql_*
commands are no longer available. Use mysqli or PDO.
Connecting To Your Database:
Using mysqli
<?php
$conn = new mysqli($servername, $username, $password);
?>
Using PDO:
<?php
$conn = new PDO("mysql:host=$servername;dbname=myDB", $username, $password);
?>
Hope everything will work fine, happy coding!
2
solved Simple idea behind a database for a single website [closed]