Mercurial > hg > ywww
annotate mq.php @ 51:e6976d92cfc9
refactor 503
| author | Charlie Root |
|---|---|
| date | Thu, 06 Jun 2019 16:32:56 -0400 |
| parents | a67bf725e87b |
| 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 ?> |
