소스 검색

need to make a form for actual submission

development
mauirixxx 8 년 전
부모
커밋
f0382b9206
1개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  1. +14
    -0
      gw-toon.php

+ 14
- 0
gw-toon.php 파일 보기

@@ -0,0 +1,14 @@
<?php
include_once 'gw-connect.php';
$con = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME);
if ($con->connect_errno > 0){
die ('Unable to connect to database [' . $db->connect_errno . ']');
}
$sql = "SELECT charname FROM `playername` WHERE `userid` = '1' ORDER BY `charname` ASC"; //need to make userid a variable
if (!$result = $con->query($sql)){
die ('There was an error running the query [' . $con->error . ']');
}
while ($row = $result->fetch_array()){
echo 'Please select a character to continue' . $row['charname'];
}
?>

불러오는 중...
취소
저장