|
|
|
ล๊อคอินเข้าระบบ แต่บัคครับขึ้น error ช่วยแก้ให้ที่ครับ Fatal error: Call to undefined function select() i |
|
|
|
|
|
|
|
ล๊อคอินแล้วมันไม่เข้าอ่ะครับ ผิดตรงไหนป่าวช่วยดูให้ผมหน่อยสิครับ
รบกวนหน่อยครับ
Error
Fatal error: Call to undefined function select() in C:\AppServ\www\PJ-Program\home.php on line 6
โค๊ต
Code (PHP)
<?
//============ กรณีที่ทำการล็อกอินสมาชิก
if($_GET["action"]=="Login")
{
//============ ตรวจสอบสมาชิก
$resultLogin=select("p_member","where 1 and member_user='".$_POST["txtUser"]."' and member_pass='".$_POST["txtPass"]."' ");
echo"$resultLogin=select";
if(!$resultLogin)
{
echo "<script language=\"JavaScript\">";
echo "alert('Username และ Password ไม่ถูกต้อง');";
echo "</script>";
}
else
{
//============ บันทึกข้อมูลสมาชิก
$_SESSION["strUser"]=$_POST["txtUser"];
$_SESSION["strPass"]=$_POST["txtPass"];
session_write_close();
header("location:cart.php");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>*~ welcome ~*</title>
<style type="text/css">
<!--
body {
background-color: #33FF00;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
#Layer1 {
position:absolute;
left:288px;
top:265px;
width:594px;
height:321px;
z-index:1;
}
#Layer2 {
position:absolute;
left:341px;
top:298px;
width:561px;
height:188px;
z-index:2;
}
body,td,th {
font-family: Microsoft Sans Serif;
font-size: 14px;
}
a {
font-family: Microsoft Sans Serif;
font-size: 14px;
}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
//-->
</script>
</head>
<body onload="MM_preloadImages('image/but/home2.png','image/but/history2.png','image/but/lession2.png','image/but/member2.png','image/but/WM2.png','image/unit1-1.jpg','../image/news.jpg','../image/news1.jpg','../image/unit1-1.jpg','../image/unit2-1.jpg','../image/unit3-1.jpg','../image/unit4-1.jpg','../image/unit5-1.jpg','../image/unit6-1.jpg','../image/unit7-1.jpg','../image/unit8-1.jpg','../image/unit9-1.jpg','../image/unit10-1.jpg')">
<table width="940" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="57" background="image/margin2.png"> </td>
<td colspan="2" bgcolor="#FFFF99" bordercolor="#000000"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="176" height="170" align="left">
<param name="movie" value="flash/logo.swf" />
<param name="quality" value="high" />
<embed src="flash/logo.swf" width="176" height="170" align="left" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="600" height="170" align="left">
<param name="movie" value="flash/ban.swf" />
<param name="quality" value="high" />
<embed src="flash/ban.swf" width="600" height="170" align="left" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object></td>
<td width="59" background="image/margin.png"> </td>
</tr>
<tr>
<td width="57" background="image/margin2.png"> </td>
<td colspan="2" align="center" valign="top" bgcolor="#FFFF99"><p><a href="home.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','image/but/home2.png',1)"><img src="image/but/home1.png" name="Image1" width="120" height="60" border="0" id="Image1" /></a><a href="history.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','image/but/history2.png',1)"><img src="image/but/history1.png" name="Image2" width="120" height="60" border="0" id="Image2" /></a><a href="learn.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','image/but/lession2.png',1)"><img src="image/but/lession1.png" name="Image3" width="120" height="60" border="0" id="Image3" /></a><a href="member.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','image/but/member2.png',1)"><img src="image/but/member1.png" name="Image4" width="120" height="60" border="0" id="Image4" /></a><a href="admin.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','image/but/WM2.png',1)"><img src="image/but/WM1.png" name="Image5" width="120" height="60" border="0" id="Image5" /></a>
</p> </td>
<td width="59" background="image/margin.png"> </td>
</tr>
<tr>
<td width="57" background="image/margin2.png"> </td>
<td width="207" align="center" valign="top" bgcolor="#FFFF99"><table width="207" height="1439" cellspacing="1">
<tr>
<th width="201" height="250" align="center" valign="top" scope="col">
<table width="199" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#66CC66">
<tr>
<td background="image/menu02.jpg" bgcolor="#FFFF99"><div align="center"><strong>
Login เข้าระบบ </strong></div></td>
</tr>
<tr>
<td height="104" bgcolor="#FFFF99"><div align="center">
<?
if($_SESSION["strUser"] =="")
{
?>
<table width="179" cellspacing="1"><form action="?action=Login" method="post" name="frmLogin">
<tr>
<th width="78" scope="col"><div align="right">user : </div></th>
<th width="92" scope="col"><div align="left">
<input name="txtUser" type="text" class="txtbox" id="txtUser" size="15" />
</div></th>
</tr>
<tr>
<td><div align="right">pass : </div></td>
<td><div align="left">
<input name="txtPass" type="password" class="txtbox" id="txtPass" size="15" />
</div></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input name="submit" type="submit" class="button" id="submit" value="Log in" />
</div></td>
</tr>
<tr>
<td height="19" colspan="2"><div align="center"><img src="image/app_free.gif" width="16" height="16" border="0" align="absbottom" /> <a href="rule.php"> สมัครสมาชิก</a></div></td>
</tr></form>
</table>
</div></td>
</tr>
</table> <?
}
else
{
?>
<table width="100%" height="75" border="0" cellpadding="2" cellspacing="1" bgcolor="#000000">
<tr bgcolor="#FFFFFF">
<td width="100%" colspan="2" background="image/menu02.jpg" bgcolor="#FFFF99" class="style5 style45"><div align="center"><strong>ยินดีต้อนรับ</strong></div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2" bgcolor="#FFFF99" class="style5 style45"> <div align="center"> <strong>
</strong> </div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2" bgcolor="#FFFF99"><div align="center"><a href="profile.php">แก้ไขข้อมูลส่วนตัว</a><br>
<a href="logout.php"><font color="#FF0000">ออกจากระบบ</font></a></div></td>
</tr>
</table>
<p>
<?
}
?>
</p>
<p> </p>
<table width="199" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#66CC66">
<tr>
<td background="image/menu02.jpg" bgcolor="#FFFF99"><div align="center"><strong>ผู้ดูแลระบบคลิกที่นี่</strong></div></td>
</tr>
<tr>
<td height="21" bgcolor="#FFFF99"><div align="center"><strong><img src="image/im_sm_prefs.gif" width="17" height="17" /> <a href="admin/index.php">Login</a></strong></div></td>
</tr>
</table></th>
</tr>
<tr>
<td height="1184" align="center" valign="top"><table width="199" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="198" height="1182"><p><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','menu','',1)" onmouseover="MM_nbGroup('over','menu','','',1)" onmouseout="MM_nbGroup('out')"><img src="image/menu.jpg" alt="" name="menu" width="198" height="64" border="0" id="menu" onload="" /></a><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','news','image/news.jpg',1)" onmouseover="MM_nbGroup('over','news','image/news1.jpg','image/news1.jpg',1)" onmouseout="MM_nbGroup('out')"><br />
<img src="image/news.jpg" alt="news" name="news" width="198" height="46" border="0" id="news" onload="" /></a><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','news','image/news.jpg',1)" onmouseover="MM_nbGroup('over','news','image/news1.jpg','image/news1.jpg',1)" onmouseout="MM_nbGroup('out')"><br />
</a><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','menu1','',1)" onmouseover="MM_nbGroup('over','menu1','','',1)" onmouseout="MM_nbGroup('out')"><img src="image/menu1.jpg" alt="" name="menu1" width="198" height="65" border="0" id="menu1" onload="" /></a><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','news','image/news.jpg',1)" onmouseover="MM_nbGroup('over','news','image/news1.jpg','image/news1.jpg',1)" onmouseout="MM_nbGroup('out')"><br />
</a> <a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','unit1','',1)" onmouseover="MM_nbGroup('over','unit1','image/unit1-1.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="image/unit1.jpg" alt="unit1" name="unit1" width="198" height="72" border="0" id="unit1" onload="" /></a><br />
<a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','unit2','',1)" onmouseover="MM_nbGroup('over','unit2','image/unit2-1.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="image/unit2.jpg" alt="unit2" name="unit2" width="198" height="108" border="0" id="unit2" onload="" /></a><br />
<a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','unit3','',1)" onmouseover="MM_nbGroup('over','unit3','image/unit3-1.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="image/unit3.jpg" alt="unit3" name="unit3" width="198" height="72" border="0" id="unit3" onload="" /></a><br />
<a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','unit4','',1)" onmouseover="MM_nbGroup('over','unit4','image/unit4-1.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="image/unit4.jpg" alt="unit4" name="unit4" width="198" height="108" border="0" id="unit4" onload="" /></a><br />
<a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','unit5','',1)" onmouseover="MM_nbGroup('over','unit5','image/unit5-1.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="image/unit5.jpg" alt="unit5" name="unit5" width="198" height="108" border="0" id="unit5" onload="" /></a><br />
<a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','unit6','',1)" onmouseover="MM_nbGroup('over','unit6','image/unit6-1.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="image/unit6.jpg" alt="unit6" name="unit6" width="198" height="72" border="0" id="unit6" onload="" /></a><br />
<a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','unit7','',1)" onmouseover="MM_nbGroup('over','unit7','image/unit7-1.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="image/unit7.jpg" alt="unit7" name="unit7" width="198" height="108" border="0" id="unit7" onload="" /></a><br />
<a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','unit8','',1)" onmouseover="MM_nbGroup('over','unit8','image/unit8-1.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="image/unit8.jpg" alt="unit8" name="unit8" width="198" height="108" border="0" id="unit8" onload="" /></a><br />
<a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','unit9','',1)" onmouseover="MM_nbGroup('over','unit9','image/unit9-1.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="image/unit9.jpg" alt="unit9" name="unit9" width="198" height="108" border="0" id="unit9" onload="" /></a><br />
<a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','unit10','',1)" onmouseover="MM_nbGroup('over','unit10','image/unit10-1.jpg','',1)" onmouseout="MM_nbGroup('out')"><img src="image/unit10.jpg" alt="unit10" name="unit10" width="198" height="108" border="0" id="unit10" onload="" /></a> <a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','menu2','',1)" onmouseover="MM_nbGroup('over','menu2','','',1)" onmouseout="MM_nbGroup('out')"><img src="image/menu2.jpg" alt="" name="menu2" border="0" id="menu2" onload="" /></a></p></td>
<td width="10"><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','news','image/news.jpg',1)" onmouseover="MM_nbGroup('over','news','image/news1.jpg','image/news1.jpg',1)" onmouseout="MM_nbGroup('out')"><br />
</script>
</a></td>
</tr>
</table></td>
</tr>
</table> <a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','unit1','',1)" onmouseover="MM_nbGroup('over','unit1','image/unit1-1.jpg','',1)" onmouseout="MM_nbGroup('out')"><br />
</a></td>
<td width="617" bgcolor="#FFFF99"><p align="left"> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
<td width="59" background="image/margin.png"> </td>
</tr>
<tr>
<td width="57" background="image/margin2.png"> </td>
<td colspan="2" bgcolor="#FFFF99"><img src="image/foot.gif" alt="ผู้จัดทำเว็บไซต์" width="824" height="50" /></td>
<td width="59" background="image/margin.png"> </td>
</tr>
</table>
</body>
</html>
Tag : PHP, MySQL
|
|
|
|
|
|
Date :
2010-11-29 17:26:22 |
By :
artcomclub |
View :
784 |
Reply :
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
หา function select() ไม่เจอน่ะครับ น่าจะเป็น function ที่เขียนขึ้นมาเองครับ
|
|
|
|
|
Date :
2010-11-29 17:39:46 |
By :
webmaster |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
มันหาฟังก์ชั่น select ไม่เจอครับ มันต้องมีไฟล์อะไร include มามั้ง
|
|
|
|
|
Date :
2010-11-29 17:40:37 |
By :
PlaKriM |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ขอบคุณครับ
|
|
|
|
|
Date :
2010-11-29 18:01:48 |
By :
artcomclub |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|