view mq.php @ 48:da133c130c1d

include path normalise
author Charlie Root
date Sun, 06 Jan 2019 12:46:24 -0500
parents 2a3943ced610
children a67bf725e87b
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 "ywww/dlog.php";
    dl("query from $d failed: $q\n$err\n");
    exit($err);
  }
}
?>