Mercurial > hg > ywww
annotate mq.php @ 49:a67bf725e87b
put both paths in include_path and depend on that
author | Charlie Root |
---|---|
date | Wed, 16 Jan 2019 13:42:15 -0500 |
parents | 2a3943ced610 |
children | dd93cb4b77ad |
rev | line source |
---|---|
47 | 1 <?php |
2 function my_query($q,$d='x') | |
3 { | |
4 global $link; | |
5 $res = mysqli_query($link, $q); | |
6 if ($res) { | |
7 return $res; | |
8 } | |
9 else { | |
10 $err=mysqli_error( $link ); | |
11 mysqli_close($link); | |
49
a67bf725e87b
put both paths in include_path and depend on that
Charlie Root
parents:
47
diff
changeset
|
12 include_once "dlog.php"; |
47 | 13 dl("query from $d failed: $q\n$err\n"); |
14 exit($err); | |
15 } | |
16 } | |
17 ?> |