annotate db.php @ 1:d70fd5290b07

shared constants
author Charlie Root
date Wed, 16 Jan 2019 14:38:31 -0500
parents 8e907c11207a
children eec825432669
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8e907c11207a using test db
Charlie Root
parents:
diff changeset
1 <?PHP
8e907c11207a using test db
Charlie Root
parents:
diff changeset
2 global $link;
8e907c11207a using test db
Charlie Root
parents:
diff changeset
3 $link = mysqli_connect("localhost","bookwhac","Wedding2010","bookwhac_books",
8e907c11207a using test db
Charlie Root
parents:
diff changeset
4 null,"/run/mysqld_test/mysqld.sock");
8e907c11207a using test db
Charlie Root
parents:
diff changeset
5 if (is_bool($link) or is_null($link)) {
8e907c11207a using test db
Charlie Root
parents:
diff changeset
6 include_once "dlog.php";
8e907c11207a using test db
Charlie Root
parents:
diff changeset
7 dl("connect failed: |$link|\n");
8e907c11207a using test db
Charlie Root
parents:
diff changeset
8 }
8e907c11207a using test db
Charlie Root
parents:
diff changeset
9 include_once "mq.php";
8e907c11207a using test db
Charlie Root
parents:
diff changeset
10 ?>