瀏覽代碼

forgot to change static to variable

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

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

@@ -7,7 +7,7 @@ if ($con->connect_errno > 0){
die ('Unable to connect to database [' . $db->connect_errno . ']');
}
if ($whattoon == "0" or $whattoon == ""){
$sql = "SELECT playerid, charname FROM `playername` WHERE `userid` = '1' ORDER BY `charname` ASC"; //need to make userid a variable
$sql = "SELECT playerid, charname FROM `playername` WHERE `userid` = '$userid' 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 . ']');
}


Loading…
取消
儲存