Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > PHP > PHP Forum > Unknown column 'e' in 'field list' คืออะไรครับช่วยหน่อย



 

Unknown column 'e' in 'field list' คืออะไรครับช่วยหน่อย

 



Topic : 096608

Guest




Unknown column 'e' in 'field list' มันคืออะไรครับช่วยหน่อย



Tag : PHP, MySQL, Windows







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2013-06-16 14:13:54 By : Motoki99 View : 4141 Reply : 13
 

 

No. 1



โพสกระทู้ ( 3,844 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท Hall of Fame 2012

สถานะออฟไลน์
Twitter Facebook

มันไม่เจอ หรือไม่รู้จัก column e เช็คดูครับ ว่า column e มีจริงหรือรึเปล่า






แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-06-16 14:35:59 By : mangkunzo
 


 

No. 2

Guest


เช็คตรงใหนอะครับ งงมากกกก
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-06-16 14:38:31 By : motoki99
 

 

No. 3

Guest


ตอบความคิดเห็นที่ : 1 เขียนโดย : mangkunzo เมื่อวันที่ 2013-06-16 14:35:59
รายละเอียดของการตอบ ::
เช็คตรงใหนอะครับ งงมากกกก. ในฐานข้อมูลหรอครับ

แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-06-16 14:44:55 By : motoki99
 


 

No. 4



โพสกระทู้ ( 1,569 )
บทความ ( 2 )



สถานะออฟไลน์
Twitter Facebook Blogger

-อดูโค๊ดที่เกิดปัญหาที่ว่าหน่อยครับ
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-06-16 14:50:55 By : itpcc
 


 

No. 5

Guest


ใช่ป่ะครับ
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-06-16 14:57:08 By : motoki99
 


 

No. 6



โพสกระทู้ ( 1,569 )
บทความ ( 2 )



สถานะออฟไลน์
Twitter Facebook Blogger

คัดลอกโค๊ดทั้งไฟล์ที่เกิดปัญหา พร้อมerrorที่เกิดขึ้นทั้งหมดด้วยครับ

php thaicreate


ประวัติการแก้ไข
2013-06-16 15:05:04
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-06-16 15:01:46 By : itpcc
 


 

No. 8



โพสกระทู้ ( 1,569 )
บทความ ( 2 )



สถานะออฟไลน์
Twitter Facebook Blogger

(แปะให้ใหม่ -*-)
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>&lt;&lt;HP Mobile&gt;&gt;</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>&nbsp;</td>
</tr>
</table>
<p>&nbsp;</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">&nbsp;</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>&nbsp;<?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">&nbsp;</td>
<td style="font-family:Tahoma, Geneva, sans-serif">&nbsp;</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">&nbsp;</td>
<td width="267">&nbsp;</td>
<td width="139">&nbsp;</td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html><?php
mysql_free_result($Rcsmem);
?>



ประวัติการแก้ไข
2013-06-16 15:06:33
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-06-16 15:06:03 By : itpcc
 


 

No. 9

Guest


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>&lt;&lt;HP Mobile&gt;&gt;</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>&nbsp;</td>
  </tr>
</table>
<p>&nbsp;</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">&nbsp;</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>&nbsp;<?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">&nbsp;</td>
            <td style="font-family:Tahoma, Geneva, sans-serif">&nbsp;</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">&nbsp;</td>
    <td width="267">&nbsp;</td>
    <td width="139">&nbsp;</td>
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html><?php
mysql_free_result($Rcsmem);
?>


แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-06-16 15:06:53 By : motoki99
 


 

No. 10



โพสกระทู้ ( 1,569 )
บทความ ( 2 )



สถานะออฟไลน์
Twitter Facebook Blogger

แล้วมันแจ้ง error มั้ยครับว่ามาจากบรรทัดหรือ line ไหน?
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-06-16 15:12:11 By : itpcc
 


 

No. 11

Guest


ไม่ครับ เวลารันแล้วกดแก้ไขข้อมูลมันเลยขึ้น Unknown column 'e' in 'field list'
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-06-16 15:14:43 By : motoki99
 


 

No. 12

Guest


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
 


 

No. 13

Guest


ได้ละครับเปลี่ยนจากe-mail เป็น mail
ขอบคุณที่ช่วยนะครับ
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-06-16 15:45:33 By : motoki99
 


 

No. 14



โพสกระทู้ ( 1,569 )
บทความ ( 2 )



สถานะออฟไลน์
Twitter Facebook Blogger

อลงเปลี่ยนจาก :
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
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : Unknown column 'e' in 'field list' คืออะไรครับช่วยหน่อย
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 00
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่