|
|
|
Unknown column 'e' in 'field list' คืออะไรครับช่วยหน่อย |
|
|
|
|
|
|
|
มันไม่เจอ หรือไม่รู้จัก column e เช็คดูครับ ว่า column e มีจริงหรือรึเปล่า
|
|
|
|
|
Date :
2013-06-16 14:35:59 |
By :
mangkunzo |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
เช็คตรงใหนอะครับ งงมากกกก
|
|
|
|
|
Date :
2013-06-16 14:38:31 |
By :
motoki99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-อดูโค๊ดที่เกิดปัญหาที่ว่าหน่อยครับ
|
|
|
|
|
Date :
2013-06-16 14:50:55 |
By :
itpcc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Date :
2013-06-16 14:57:08 |
By :
motoki99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
คัดลอกโค๊ดทั้งไฟล์ที่เกิดปัญหา พร้อมerrorที่เกิดขึ้นทั้งหมดด้วยครับ
|
ประวัติการแก้ไข 2013-06-16 15:05:04
|
|
|
|
Date :
2013-06-16 15:01:46 |
By :
itpcc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(แปะให้ใหม่ -*-)
Code (PHP)
<?php require_once('Connections/Dbtel.php'); ?>
<?php
//initialize the session
if (!isset($_SESSION)) {
session_start();
}
// ** Logout the current user. **
$logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
$logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){
//to fully log out a visitor we need to clear the session varialbles
$_SESSION['MM_Username'] = NULL;
$_SESSION['MM_UserGroup'] = NULL;
$_SESSION['PrevUrl'] = NULL;
unset($_SESSION['MM_Username']);
unset($_SESSION['MM_UserGroup']);
unset($_SESSION['PrevUrl']);
$logoutGoTo = "logout.php";
if ($logoutGoTo) {
header("Location: $logoutGoTo");
exit;
}
}
?>
<?php
if (!isset($_SESSION)) {
session_start();
}
$MM_authorizedUsers = "User";
$MM_donotCheckaccess = "true";
// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
// For security, start by assuming the visitor is NOT authorized.
$isValid = False;
// When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
// Therefore, we know that a user is NOT logged in if that Session variable is blank.
if (!empty($UserName)) {
// Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
// Parse the strings into arrays.
$arrUsers = Explode(",", $strUsers);
$arrGroups = Explode(",", $strGroups);
if (in_array($UserName, $arrUsers)) {
$isValid = true;
}
// Or, you may restrict access to only certain users based on their username.
if (in_array($UserGroup, $arrGroups)) {
$isValid = true;
}
if (($strUsers == "") && true) {
$isValid = true;
}
}
return $isValid;
}
$MM_restrictGoTo = "protect.php";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {
$MM_qsChar = "?";
$MM_referrer = $_SERVER['PHP_SELF'];
if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0)
$MM_referrer .= "?" . $_SERVER['QUERY_STRING'];
$MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
header("Location: ". $MM_restrictGoTo);
exit;
}
?>
<?
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
?>
<?php
$colname_Rcsmem = "-1";
if (isset($_SESSION['MM_Username'])) {
$colname_Rcsmem = $_SESSION['MM_Username'];
}
mysql_select_db($database_Dbtel, $Dbtel);
$query_Rcsmem = sprintf("SELECT * FROM member WHERE Username = %s", GetSQLValueString($colname_Rcsmem, "text"));
$Rcsmem = mysql_query($query_Rcsmem, $Dbtel) or die(mysql_error());
$row_Rcsmem = mysql_fetch_assoc($Rcsmem);
$totalRows_Rcsmem = mysql_num_rows($Rcsmem);
?>
<?
$query_Rcsmem = "SELECT * FROM member ORDER BY Username ASC";
$Rcsmem = mysql_query($query_Rcsmem, $Dbtel) or die(mysql_error());
$row_Rcsmem = mysql_fetch_assoc($Rcsmem);
$totalRows_Rcsmem = mysql_num_rows($Rcsmem);
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><<HP Mobile>></title>
<style type="text/css">
body {
background-attachment: fixed;
background-image: url(img/Intel_wallpapers_365.jpg);
background-repeat: no-repeat;
}
</style>
</head>
<body onLoad="MM_preloadImages('img/home22.png','img/store22.png','img/promotion22.png','img/callcenter22.png')">
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="img/Untitled-1.png" width="900" height="107" /></td>
</tr>
</table>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="img/piecemaker2.png" width="900" height="280" /></td>
</tr>
</table>
<table width="900" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','img/home22.png',1)"><img src="img/home1.png" width="225" height="60" id="Image3" /></a></td>
<td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','img/store22.png',1)"><img src="img/store1.png" width="225" height="60" id="Image4" /></a></td>
<td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','img/promotion22.png',1)"><img src="img/promotion1.png" width="225" height="60" id="Image5" /></a></td>
<td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','img/callcenter22.png',1)"><img src="img/callcenter1.png" width="225" height="60" id="Image6" /></a></td>
</tr>
</table>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<p> </p>
<table width="756" border="0" align="center">
<tr>
<td colspan="3"><table width="650" border="0" cellpadding="0" cellspacing="0" bordercolor="GOLD">
<tr>
<td><img src="img/new produ.png" width="650" height="62"></td>
</tr>
</table></td>
<td width="136"> </td>
</tr>
<tr>
<td height="414" colspan="3" align="center" valign="top"><table width="650" border="2" bordercolor="GOLD">
<tr>
<td><img src="img/prowrite.png" width="650" height="400"></td>
</tr>
</table></td>
<td rowspan="2" valign="top"><table width="250" border="2" bordercolor="GOLD">
<tr>
<td><img src="img/welcome2.png" width="250" height="36"></td>
</tr>
<tr>
<td background="img/bgwrit.png"><table width="249" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="79" align="center" style="font-family:Tahoma, Geneva, sans-serif"><font color="#ed1c79" size="+1"><B>คุณ : </B></font></td>
<td width="170" style="font-family:Tahoma, Geneva, sans-serif"><font color="#ed1c79" size="+1"><B> <?php echo $_SESSION['MM_Username']; ?></B></font></td>
</tr>
<tr>
<td colspan="2" align="center" style="font-family:Tahoma, Geneva, sans-serif"><font color="#ed1c79" size="-3"><B><a href="edit_profile.php">[แก้ไขข้อมูลส่วนตัว] </a><a href="changpass.php">[เปลี่ยนรหัสผ่าน]</a><a href="<?php echo $logoutAction ?>">[ออกจากระบบ]</a></td>
</tr>
<tr>
<td align="center" style="font-family:Tahoma, Geneva, sans-serif"> </td>
<td style="font-family:Tahoma, Geneva, sans-serif"> </td>
</tr>
</table></td>
</tr>
</table>
<p><div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/th_TH/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-href="https://www.facebook.com/hlongpoppongsai" data-send="true" data-layout="button_count" data-width="450" data-show-faces="true" data-colorscheme="dark"></div>
<div class="fb-comments" data-href="https://www.facebook.com/hlongpoppongsai" data-width="250" data-num-posts="5" data-colorscheme="dark"></div>
</p></td>
</tr>
<tr>
<td width="186" height="21"> </td>
<td width="267"> </td>
<td width="139"> </td>
</tr>
</table>
<p> </p>
<p> </p>
</body>
</html><?php
mysql_free_result($Rcsmem);
?>
|
ประวัติการแก้ไข 2013-06-16 15:06:33
|
|
|
|
Date :
2013-06-16 15:06:03 |
By :
itpcc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (PHP)
<?php require_once('Connections/Dbtel.php'); ?>
<?php
//initialize the session
if (!isset($_SESSION)) {
session_start();
}
// ** Logout the current user. **
$logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
$logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){
//to fully log out a visitor we need to clear the session varialbles
$_SESSION['MM_Username'] = NULL;
$_SESSION['MM_UserGroup'] = NULL;
$_SESSION['PrevUrl'] = NULL;
unset($_SESSION['MM_Username']);
unset($_SESSION['MM_UserGroup']);
unset($_SESSION['PrevUrl']);
$logoutGoTo = "logout.php";
if ($logoutGoTo) {
header("Location: $logoutGoTo");
exit;
}
}
?>
<?php
if (!isset($_SESSION)) {
session_start();
}
$MM_authorizedUsers = "User";
$MM_donotCheckaccess = "true";
// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
// For security, start by assuming the visitor is NOT authorized.
$isValid = False;
// When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
// Therefore, we know that a user is NOT logged in if that Session variable is blank.
if (!empty($UserName)) {
// Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
// Parse the strings into arrays.
$arrUsers = Explode(",", $strUsers);
$arrGroups = Explode(",", $strGroups);
if (in_array($UserName, $arrUsers)) {
$isValid = true;
}
// Or, you may restrict access to only certain users based on their username.
if (in_array($UserGroup, $arrGroups)) {
$isValid = true;
}
if (($strUsers == "") && true) {
$isValid = true;
}
}
return $isValid;
}
$MM_restrictGoTo = "protect.php";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {
$MM_qsChar = "?";
$MM_referrer = $_SERVER['PHP_SELF'];
if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0)
$MM_referrer .= "?" . $_SERVER['QUERY_STRING'];
$MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
header("Location: ". $MM_restrictGoTo);
exit;
}
?>
<?
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
?>
<?php
$colname_Rcsmem = "-1";
if (isset($_SESSION['MM_Username'])) {
$colname_Rcsmem = $_SESSION['MM_Username'];
}
mysql_select_db($database_Dbtel, $Dbtel);
$query_Rcsmem = sprintf("SELECT * FROM member WHERE Username = %s", GetSQLValueString($colname_Rcsmem, "text"));
$Rcsmem = mysql_query($query_Rcsmem, $Dbtel) or die(mysql_error());
$row_Rcsmem = mysql_fetch_assoc($Rcsmem);
$totalRows_Rcsmem = mysql_num_rows($Rcsmem);
?>
<?
$query_Rcsmem = "SELECT * FROM member ORDER BY Username ASC";
$Rcsmem = mysql_query($query_Rcsmem, $Dbtel) or die(mysql_error());
$row_Rcsmem = mysql_fetch_assoc($Rcsmem);
$totalRows_Rcsmem = mysql_num_rows($Rcsmem);
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><<HP Mobile>></title>
<style type="text/css">
body {
background-attachment: fixed;
background-image: url(img/Intel_wallpapers_365.jpg);
background-repeat: no-repeat;
}
</style>
</head>
<body onLoad="MM_preloadImages('img/home22.png','img/store22.png','img/promotion22.png','img/callcenter22.png')">
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="img/Untitled-1.png" width="900" height="107" /></td>
</tr>
</table>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="img/piecemaker2.png" width="900" height="280" /></td>
</tr>
</table>
<table width="900" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','img/home22.png',1)"><img src="img/home1.png" width="225" height="60" id="Image3" /></a></td>
<td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','img/store22.png',1)"><img src="img/store1.png" width="225" height="60" id="Image4" /></a></td>
<td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','img/promotion22.png',1)"><img src="img/promotion1.png" width="225" height="60" id="Image5" /></a></td>
<td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','img/callcenter22.png',1)"><img src="img/callcenter1.png" width="225" height="60" id="Image6" /></a></td>
</tr>
</table>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<p> </p>
<table width="756" border="0" align="center">
<tr>
<td colspan="3"><table width="650" border="0" cellpadding="0" cellspacing="0" bordercolor="GOLD">
<tr>
<td><img src="img/new produ.png" width="650" height="62"></td>
</tr>
</table></td>
<td width="136"> </td>
</tr>
<tr>
<td height="414" colspan="3" align="center" valign="top"><table width="650" border="2" bordercolor="GOLD">
<tr>
<td><img src="img/prowrite.png" width="650" height="400"></td>
</tr>
</table></td>
<td rowspan="2" valign="top"><table width="250" border="2" bordercolor="GOLD">
<tr>
<td><img src="img/welcome2.png" width="250" height="36"></td>
</tr>
<tr>
<td background="img/bgwrit.png"><table width="249" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="79" align="center" style="font-family:Tahoma, Geneva, sans-serif"><font color="#ed1c79" size="+1"><B>คุณ : </B></font></td>
<td width="170" style="font-family:Tahoma, Geneva, sans-serif"><font color="#ed1c79" size="+1"><B> <?php echo $_SESSION['MM_Username']; ?></B></font></td>
</tr>
<tr>
<td colspan="2" align="center" style="font-family:Tahoma, Geneva, sans-serif"><font color="#ed1c79" size="-3"><B><a href="edit_profile.php">[แก้ไขข้อมูลส่วนตัว] </a><a href="changpass.php">[เปลี่ยนรหัสผ่าน]</a><a href="<?php echo $logoutAction ?>">[ออกจากระบบ]</a></td>
</tr>
<tr>
<td align="center" style="font-family:Tahoma, Geneva, sans-serif"> </td>
<td style="font-family:Tahoma, Geneva, sans-serif"> </td>
</tr>
</table></td>
</tr>
</table>
<p><div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/th_TH/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-href="https://www.facebook.com/hlongpoppongsai" data-send="true" data-layout="button_count" data-width="450" data-show-faces="true" data-colorscheme="dark"></div>
<div class="fb-comments" data-href="https://www.facebook.com/hlongpoppongsai" data-width="250" data-num-posts="5" data-colorscheme="dark"></div>
</p></td>
</tr>
<tr>
<td width="186" height="21"> </td>
<td width="267"> </td>
<td width="139"> </td>
</tr>
</table>
<p> </p>
<p> </p>
</body>
</html><?php
mysql_free_result($Rcsmem);
?>
|
|
|
|
|
Date :
2013-06-16 15:06:53 |
By :
motoki99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
แล้วมันแจ้ง error มั้ยครับว่ามาจากบรรทัดหรือ line ไหน?
|
|
|
|
|
Date :
2013-06-16 15:12:11 |
By :
itpcc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ไม่ครับ เวลารันแล้วกดแก้ไขข้อมูลมันเลยขึ้น Unknown column 'e' in 'field list'
|
|
|
|
|
Date :
2013-06-16 15:14:43 |
By :
motoki99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (PHP)
ตอบความคิดเห็นที่ : 10 เขียนโดย : itpcc เมื่อวันที่ 2013-06-16 15:12:11
รายละเอียดของการตอบ ::
<?php require_once('Connections/Dbtel.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
$updateSQL = sprintf("UPDATE member SET Password=%s, fullname=%s, lastname=%s, e-mail=%s, tel=%s, address=%s, Province=%s WHERE Username=%s",
GetSQLValueString($_POST['Password'], "text"),
GetSQLValueString($_POST['Fullname'], "text"),
GetSQLValueString($_POST['Lastname'], "text"),
GetSQLValueString($_POST['e-mail'], "text"),
GetSQLValueString($_POST['Tel'], "text"),
GetSQLValueString($_POST['Address'], "text"),
GetSQLValueString($_POST['Province'], "text"),
GetSQLValueString($_POST['Username'], "text"));
mysql_select_db($database_Dbtel, $Dbtel);
$Result1 = mysql_query($updateSQL, $Dbtel) or die(mysql_error());
}
$colname_Recordset1 = "-1";
if (isset($_SESSION['MM_Username'])) {
$colname_Recordset1 = $_SESSION['MM_Username'];
}
mysql_select_db($database_Dbtel, $Dbtel);
$query_Recordset1 = sprintf("SELECT Username, Password, fullname, lastname, e-mail, tel, address, Province, Identification FROM member WHERE Username = %s", GetSQLValueString($colname_Recordset1, "text"));
$Recordset1 = mysql_query($query_Recordset1, $Dbtel) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
|
|
|
|
|
Date :
2013-06-16 15:36:33 |
By :
motoki99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ได้ละครับเปลี่ยนจากe-mail เป็น mail
ขอบคุณที่ช่วยนะครับ
|
|
|
|
|
Date :
2013-06-16 15:45:33 |
By :
motoki99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
อลงเปลี่ยนจาก :
Code (PHP)
"UPDATE member SET Password=%s, fullname=%s, lastname=%s, e-mail=%s, tel=%s, address=%s, Province=%s WHERE Username=%s"
เป็น :
Code (PHP)
"UPDATE `member` SET `Password`=%s, `fullname`=%s, `lastname`=%s, `e-mail`=%s, `tel`=%s, `address`=%s, `Province`=%s WHERE `Username`=%s",
และจาก :
Code (PHP)
"SELECT Username, Password, fullname, lastname, e-mail, tel, address, Province, Identification FROM member WHERE Username = %s"
เป็น :
Code (PHP)
"SELECT `Username`, `Password`, `fullname`, `lastname`, `e-mail`, `tel`, `address`, `Province`, `Identification` FROM `member` WHERE `Username` = %s"
|
|
|
|
|
Date :
2013-06-16 15:46:19 |
By :
itpcc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 04
|