|
|
|
ช่วยดู ERROR ของ การโชว์ข้อมูลของเว็บบอร์ดที่ครับว่ามันผิดพลาดตรงไหน |
|
|
|
|
|
|
|
Fatal error: Call to undefined function displaydate() in C:\AppServ\www\sahakij\question_view.php on line 212
Code (PHP)
<html>
<head>
<title>หน้าหลักสหกิจ</title>
<style type="text/css">
<!--
A:link {text-decoration: none;}
A:visited {text-decoration: none;}
A:hover {color: ffffff;}
<!--
.{scrollbar-3d-light-color: #808080;
scrollbar-arrow-color: #ffffff;
scrollbar-base-color: #808080;
scrollbar-dark-shadow-color: #808080;
scrollbar-face-color: #000000;
scrollbar-highlight-color: #808080;
scrollbar-shadow-color: #808080}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body leftmargin="2" rightmargin="2" topmargin="2" bottommargin="2" bgcolor="#1C1C46" text="#ffffff" link="#d0d0d0" vlink="#d0d0d0" alink="#000000">
<center>
<font face="Tahoma, Verdana"> <table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#000000" bgcolor="#000000">
<tr><!-- Row 1 -->
<td colspan="2" align="center" bgcolor="#D6D6E4" valign=middle><br>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td width="133">
<div align="center"><font size="8" color="#3F3F65"><b><font size="6"> </font><font size="8" color="#3F3F65"><b><font size="6"></font><font size="8" color="#3F3F65"><b><font size="8" color="#3F3F65"><b><font size="6"></font><font size="8" color="#3F3F65"><b><font size="8" color="#3F3F65"><b><font size="8" color="#3F3F65"><b><font size="8" color="#3F3F65"><b><font size="6"><img src="rmutto00.png" width="148" height="198"></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></b></font></div>
</td>
<td width="5"> </td>
<td width="492" valign="middle">
<div align="center">
<h1><font face="Tahoma, Verdana" color="#0000FF">ระบบสหกิจออนไลน์</font></h1>
</div>
<div align="center"></div></td>
</tr>
</table>
<br>
<NOSCRIPT>
</NOSCRIPT> </td>
</tr>
<tr>
<td colspan="2" bgcolor="#4A3991" align="center"><b>
<font color="#ff0000" size="3"><></font><font size="3" face="Tahoma, Verdana"><a href="newmaintest.html">หน้าแรก</a></font><font color="#ff0000" size="3"><></font> <a href="#" onFocus="this.blur()"><font size="3"><b>Link Here</b></font></a>
<font color="#ff0000" size="3"><></font> <a href="#" onFocus="this.blur()"><font size="3"><b>Link Here</b></font></a>
<font color="#ff0000" size="3"><></font> <a href="#" onFocus="this.blur()"><font size="3"><b>Link Here</b></font></a>
<font color="#ff0000" size="3"><></font> <a href="#" onFocus="this.blur()"><font size="3"><b>กระดานข่าว</b></font></a>
<font color="#ff0000" size="3"><></font> <a href="#" onFocus="this.blur()"><font size="3"><b>ติดต่อเรา</b></font></a> <font color="#ff0000" size="3"><></font>
</b>
</td>
</tr>
<tr><!-- Row -->
<td width="21%" align="center" valign="top" bgcolor="#3F3F65">
<table width="100%" bordercolor="#7D7D7D" bgcolor="#3F3F65" cellspacing="0" cellpadding="0" border="0">
<tr><!-- Row -->
<td width="100%" align="center" valign="top" bordercolordark="000000"><form name="form1" method="post" action="checklogin.php">
<table width="200" border="0">
<tr>
<td><font face="Tahoma, Verdana">Username</font></td>
<td><input type="text" name="user" id="user"></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="password" id="password"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="button" id="button" value="Submit">
<input type="reset" name="button2" id="button2" value="Reset"></td>
</tr>
</table>
</form>
<table width="100%" bordercolor="#505050" bgcolor="#3F3F65" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="100%" bgcolor="#3F3F65">
<div align="center"><b><font color="#ff0000" size="3" face="Tahoma, Verdana">ปฏิทินสหกิจศึกษา</font></b></div>
</td>
</tr>
<tr>
<!-- Row -->
<td bordercolorlight="808080" bordercolordark="000000"><font color="#ff0000" size="3">></font>
<a href="url" onFocus="this.blur()"><font size="3"><b>ปฏิทินดำเนินงานสหกิจ</b></font></a></td>
</tr>
<tr>
<!-- Row -->
<td bordercolorlight="808080" bordercolordark="000000"><font color="#ff0000" size="3">></font>
<a href="url" onFocus="this.blur()"><font size="3"><b>ตารางการอบรบต่างๆ</b></font></a></td>
</tr>
<tr>
<!-- Row -->
<td bordercolorlight="808080" bordercolordark="000000"><font color="#ff0000" size="3">></font>
<a href="url" onFocus="this.blur()"><font size="3"><b>Link Here</b></font></a></td>
</tr>
<tr>
<!-- Row -->
<td bordercolorlight="808080" bordercolordark="000000"><font color="#ff0000" size="3">></font>
<a href="url" onFocus="this.blur()"><font size="3"><b>Link Here</b></font></a></td>
</tr>
<tr>
<!-- Row -->
<td bordercolorlight="808080" bordercolordark="000000"><font color="#ff0000" size="3">></font>
<a href="url" onFocus="this.blur()"><font size="3"><b>Link Here</b></font></a></td>
</tr>
<tr>
<!-- Row -->
<td bordercolorlight="808080" bordercolordark="000000"><font color="#ff0000" size="3">></font>
<a href="url" onFocus="this.blur()"><font size="3"><b>Link Here</b></font></a></td>
</tr>
<tr>
<!-- Services -->
<td bgcolor="#3F3F65">
<center>
<b><font color="#ff0000" size="3" face="Tahoma, Verdana">เกี่ยวกับสหกิจศึกษา</font></b>
</center>
</td>
</tr>
<tr>
<!-- Row -->
<td bordercolorlight="808080" bordercolordark="000000"><font color="#ff0000" size="3">></font>
<a href="url" onFocus="this.blur()"><font size="3"><b>สหกิจคืออะไร</b></font></a></td>
</tr>
<tr>
<!-- Row -->
<td bordercolorlight="808080" bordercolordark="000000"><font color="#ff0000" size="3">></font>
<a href="url" onFocus="this.blur()"><font size="3"><b>การปฏิบัติงานสหกิจ</b></font></a></td>
</tr>
<tr>
<!-- Row -->
<td bordercolorlight="808080" bordercolordark="000000"><font color="#ff0000" size="3">></font>
<a href="url" onFocus="this.blur()"><font size="3"><b>คุณสมบัตินักศึกษา</b></font></a></td>
</tr>
<tr>
<!-- Row -->
<td bordercolorlight="808080" bordercolordark="000000"><font color="#ff0000" size="3">></font>
<a href="url" onFocus="this.blur()"><font size="3"><b>ประโยชน์ที่นักศึกษาได้รับ</b></font></a></td>
</tr>
<tr>
<!-- Other -->
<td bgcolor="#3F3F65">
<center>
<font size="3" color="#ff0000"><b>OTHER</b></font>
</center>
</td>
</tr>
<tr>
<!-- Row -->
<td bordercolorlight="808080" bordercolordark="000000"><font color="#ff0000" size="3">></font>
<a href="url" onFocus="this.blur()"><font size="3"><b>Link Here</b></font></a></td>
</tr>
<tr>
<!-- Row -->
<td bordercolorlight="808080" bordercolordark="000000"><font color="#ff0000" size="3">></font>
<a href="url" onFocus="this.blur()"><font size="3"><b>Link Here</b></font></a></td>
</tr>
<tr>
<!-- Row -->
<td bordercolorlight="808080" bordercolordark="000000"><font color="#ff0000" size="3">></font>
<a href="url" onFocus="this.blur()"><font size="3"><b>Link Here</b></font></a></td>
</tr>
</table><br>
</td>
</tr>
</table><br>
</td>
<td width="79%"> <table width="100%" height="502" border=0 cellpadding=0 cellspacing=0>
<tr>
<td width="100%" align="center" valign="top" bgcolor="#535386"><b><font color="red" face="MS Sans Serif">ตั้งกระทู้ถามตอบ<br>
</font></b>
<form name="form2" method="post" action="question_save.php">
<?
include "connect.php";
$sql="select * from wb_question order by id_ques desc";
result=mysql_db_query($dbname,$sql);
echo "
<h3> Webboard กระทู้ ถาม-ตอบ </h3>
<a href='question_form.php'>ตั้งคำถามใหม่</a><p>
<table width='80%' border='0'>
<tr bgcolor=''>
<td width='8%'><center><b><font size='2' face='MS
Sans Serif'>รหัส</font></b></center></td>
<td width='61%'><center><b><font size='2' face='MS
Sans Serif'>หัวข้อคำถาม</font></b></center></td>
<td width='15%'><center><b><font size='2' face='MS
Sans Serif'>ผู้ตั้งคำถาม</font></b></center></td>
<td width='16%'><center><b><font size='2' face='MS
Sans Serif'>ตั้งแต่วันที่</font></b></center></td>
</tr> ";
while($record=mysql_fetch_array($result)) {
$id_ques=$record[id_ques];
$title_ques=$record[title_ques];
$detail_ques=$record[detail_ques];
$name_ques=$record[name_ques];
$email_ques=$record[email_ques];
$date_ques=$record[date_ques];
$title_ques=htmlspecialchars($title_ques);
$name_ques=htmlspecialchars($title_ques);
$detail_ques=nl2br(htmlspecialchars($detail_ques));
$date_ques=displaydate($date_ques);
echo "
<tr bgcolor=''>
<td width='8%'><center><font size='2'
face='MS Sans Serif'>#$id_ques</font></center>
</td>
<td width='61%'><font size='2' face='MS Sans Serif'>
<a href='answer_view.php?id_ques=$id_ques'>
$title_ques</a></font></td>
<td width='15%'><center><font size='2'
face='MS Sans Serif'>$name_ques</font></center>
</td>
<td width='16%'><center><font size='2'
face='MS Sans Serif'>$date_ques</font></center>
</td>
</tr>";
} //end while
echo "</table>";
?>
</form>
<font face="MS Sans Serif"><br>
<br>
</font> </td>
</tr></table>
</td>
</tr>
</table>
</font>
<p><font face="Tahoma, Verdana"><font face="Arial, Verdana, Helvetica" size="1" color="#FFFFFF">
Copyright </font><font face="Tahoma, Verdana"><font face="Arial, Verdana, Helvetica" size="1" color="#FFFFFF">©</font></font>
<font face="Arial, Verdana, Helvetica" size="1" color="#FFFFFF">200</font></font><font face="Arial, Verdana, Helvetica" size="1" color="#FFFFFF">2</font><font face="Tahoma, Verdana"><font face="Arial, Verdana, Helvetica" size="1" color="#FFFFFF">.
All rights reserved. </font><font size="1" color="#FFFFFF">Contact: <a href="mailto:[email protected]">[email protected]</a> Powered
by <a href="http://www.sevenpro.com"><i>7ProSoft</i></a></font> </font></p>
<p> </p>
<p> </p>
<p> </p>
</center>
</body>
</html>
>
รบกวนด้วยครับ
Tag : PHP, MySQL
|
ประวัติการแก้ไข 2012-02-03 15:02:56 2012-02-03 15:13:04 2012-02-03 15:13:58
|
|
|
|
|
Date :
2012-02-03 14:53:40 |
By :
kahapol |
View :
918 |
Reply :
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
บรรทัดที่ 212 เวลา echo ให้ ใช้ "" หรือ '' แล้วทำไมไม่มีเครื่องหาย ; ปิดท้ายล่ะ
|
|
|
|
|
Date :
2012-02-03 15:27:04 |
By :
เจ้าปัญหา |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
อ่อโอเค ได้แล้วครับที่มันโชว์
Fatal error: Call to undefined function displaydate()
เพราะปัญหาที่ function แก้เรียบร้อยแล้ว
ขอบคุณที่เข้ามาตอบนะครับ
|
|
|
|
|
Date :
2012-02-03 15:29:51 |
By :
kahapol |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
อิอิ ยินดีเมื่อมีโอกาส
|
|
|
|
|
Date :
2012-02-03 15:30:52 |
By :
เจ้าปัญหา |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 05
|