관리-도구
편집 파일: connection.php
<?php $conn=mysqli_connect('localhost','u539723576_riro','Riro#12345','u539723576_riro','3306'); function insert($qry){ $res=mysqli_query($GLOBALS['conn'],$qry); return mysqli_insert_id($GLOBALS['conn']); } function select($qry){ $res=mysqli_query($GLOBALS['conn'],$qry); $result=mysqli_fetch_all($res,MYSQLI_ASSOC); return $result; } function update($q){ mysqli_query($GLOBALS['conn'],$q); } function redirect($url){?> <script type="text/javascript"> window.location="<?php echo $url ?>"; </script> <?php } function alert($msg){ echo "<script> alert('$msg')</script>"; } function delete($qry){ $res=mysqli_query($GLOBALS['conn'],$qry); return $res; } ?>