|
 |
|
ช่วยดูสคิปตรวจสอบ Username ทีครับ มันขึ้นแต่ Username ของท่านไม่มีอยู่ในระบบ ทั้งๆที่ username |
|
 |
|
|
 |
 |
|
มันขึ้นแต่ Username ของท่านไม่มีอยู่ในระบบ ทั้งๆที่ username ก็ถูกต้องแล้วอ่าครับ
Code (PHP)
<?
@session_start();
if (($_COOKIE['session'] != session_id()) || ($_POST['check'] != 1)) exit();
include ("config.php");
$card_id = $_POST['s1']. - $_POST['s2']. - $_POST['s3']. - $_POST['s4']. - $_POST['s5'];
$date_is = date("Y-m-d H:i:s");
$top_key = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
$key_code = "";
for ($i = 0; $i < 6; $i++) {
if (rand(0,1) == 1) {
$key_code .= $top_key{rand(0,23)};
} else {
$key_code .= rand(0,9);
}
}
$user_check=$_POST[user_id];
$sql="select * from smf_members where member_name='$user_check' ";
$result=mysql_db_query($dbname2,$sql);
$num=mysql_num_rows($result);
if ($num<=0) {
echo "<h3>ERROR : Username ของท่านไม่มีอยู่ในระบบ </h3>";
echo "หากท่านยังไม่มี Username ให้สมัคร <a href='xxxx' target='_blank'>ที่นี่</a>";
exit();
}
@setcookie("key_pass",$key_code);
$sql = "insert into $dbname.topup set card_id ='$card_id' , price= '$_POST[price]' , date_is='$date_is' , '$user_check' , email=' $_POST[email]' ,key_code='$key_code'";
if ($_SESSION['ischeck'] == 1) {
$sqlquery=mysql_db_query($dbname, $sql);
$_SESSION['ischeck'] = 0;
}
echo "<br>เพิ่มข้อมูลผู้ใช้ลงในฐานข้อมูลเรียบร้อยแล้ว key code ของท่านคือ : $key_code" ;
echo "<br>โปรดเก็บ Keycode ของท่านไว้เพื่อใช้เป็นหลักฐานในการยืนยัน" ;
echo "<br>ทางทีมงานจะตรวจสอบภายใน 24 ชั่วโมง" ;
echo "<br>เข้าสู่เวบอบอร์ด <a href='xxxx' target='_blank'>คลิก</a>" ;
mysql_close();
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ZeesClub True Money TopUp</title>
</head>
<body>
</body>
</html>
Tag : - - - -

|
|
 |
 |
 |
 |
Date :
2009-04-19 18:54:09 |
By :
trojan983 |
View :
1076 |
Reply :
4 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
<?php
$user_check=$_POST[user_id]; // ตรงนี้เป็น name หรือเปล่า
$sql="select * from smf_members where member_name='$user_check' ";
?>
|
 |
 |
 |
 |
Date :
2009-04-19 20:00:40 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
<?php
$user_check=$_POST[user_id]; // ของคุณ
$user_check=$_POST['user_id']; // แก้ใข
?>
ลองดูนะครับ งิงิ
|
 |
 |
 |
 |
Date :
2009-04-19 20:02:51 |
By :
mosaddzero |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แก้ได้แล้วครับมันผิดที่ตรงนี้
$user_check=$_POST[user_id];
ต้องเป็น
$user_check=$_POST[userid]; หุหุ
แต่มีปัญหาอีกแล้วครับมันไม่ยอมบันทึกข้อมูลลง sql อ่าครับ
|
 |
 |
 |
 |
Date :
2009-04-19 20:12:07 |
By :
trojan983 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แก้ไขได้หมดแล้วครับ
ขอบคุณมากครับ
|
 |
 |
 |
 |
Date :
2009-04-19 20:51:34 |
By :
trojan983 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 05
|