[Solved] Simple idea behind a database for a single website [closed]


You actually can Google but you can go try to learn at the links below:

  1. w3schools.com
  2. php.net

And you need to learn sql too. For sql, this links can help you:

  1. w3schools.com
  2. tutorialspoint.com

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]