瀏覽代碼

userid isn't populating

or is it? if so it should show up in the sql string
development
mauirixxx 8 年之前
父節點
當前提交
4d7ed3c0a7
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      gw-create.php

+ 1
- 0
gw-create.php 查看文件

@@ -16,6 +16,7 @@ if ($createnew === "1"){
$bdate = mysqli_real_escape_string($con, $_POST['bdate']);
$profid = mysqli_real_escape_string($con, $_POST['professionid']);
$sqlcreate = "INSERT INTO `playername` (charname, birthdate, userid, professionid) VALUES ('$cname', '$bdate', $userid, $profid)";
echo 'SQL Code w/ variables is: ' . $sqlcreate . '';
echo 'Character creation database insertion code here';
} else {
echo 'Form creation code goes here';


Loading…
取消
儲存