Skip to content

Instantly share code, notes, and snippets.

View Random-Black-Coder's full-sized avatar

Yahkeef Davis Random-Black-Coder

  • CLLCTVE-INC
  • Syracuse, N.Y.
View GitHub Profile
<!-- booklist.php -->
<?php
$dbuser='root';
$dbpass='your_mysql_root_password';
$dbhost='localhost';
$conn=mysql_connect($dbhost, $dbuser, $dbpass);
if (!$conn) die("<h3><font color=red>You must install MySQL.</font></h3>");
$db_selected=mysql_select_db("books", $conn);
if (!$db_selected)