瀏覽代碼

just trying random things to see what sticks

development
mauirixxx 8 年之前
父節點
當前提交
3c2c0b677b
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. +4
    -4
      gw-toon.php

+ 4
- 4
gw-toon.php 查看文件

@@ -7,11 +7,11 @@ $whattoon = mysqli_real_escape_string($con, $_POST['cnameid']);
if ($con->connect_errno > 0){
die ('Unable to connect to database [' . $db->connect_errno . ']');
}
$sql = "SELECT playerid, 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 . ']');
}
if ($whattoon == "0"){
$sql = "SELECT playerid, 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 . ']');
}
echo '<TITLE>Character Selection</TITLE><BODY>';
echo '<CENTER><FORM METHOD="POST">';
echo '<SELECT NAME="cnameid" onchange="this.form.submit()">';


Loading…
取消
儲存