소스 검색

actual rune db insertion test

here we go!
development
mauirixxx 8 년 전
부모
커밋
d8f2fc6f3f
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. +4
    -2
      gw-insert.php

+ 4
- 2
gw-insert.php 파일 보기

@@ -23,8 +23,10 @@ if ($droptype == 1){
$runeid = mysqli_real_escape_string($con, $_POST['runeid']);
$runerare = mysqli_real_escape_string($con, $_POST['runerarity']);
$runetype = mysqli_real_escape_string($con, $_POST['rune']);
echo "SQL code should be \"INSERT INTO `history` (historydate, charnameid, locationid, goldrec, itemtype, itemrarity, runetype) VALUES (\'$treasdate\', $toonid, $locid, $gold, \'16\', $runerare, $runeid)\" <BR />";
echo 'drop was a rune!<BR />';
$sqlruneins = "INSERT INTO `history` (historydate, charnameid, locationid, goldrec, itemtype, itemrarity, runetype) VALUES ('$treasdate', $toonid, $locid, $gold, '16', $runerare, $runeid)";
if (!$result = $con->query($sqlruneins)){
die ('There was an error running the query [' . $con->error . ']');
}
} else {
echo 'No data was sent!<BR />';
}


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