Mercurial > hg > ywww
view 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 |
line wrap: on
line source
<?php function my_query($q,$d='x') { global $link; $res = mysqli_query($link, $q); if ($res) { return $res; } else { $err=mysqli_error( $link ); mysqli_close($link); include_once "dlog.php"; dl("query from $d failed: $q\n$err\n"); exit($err); } } ?>