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,028

HOME > PHP > PHP Forum > มันขึ้น error แบบนี้แก้ยังไงค่ะ ช่วยดูให้หน่อยนะคะ ทำยังไงก็ไม่ได้แล้วค่ะ



 

มันขึ้น error แบบนี้แก้ยังไงค่ะ ช่วยดูให้หน่อยนะคะ ทำยังไงก็ไม่ได้แล้วค่ะ

 



Topic : 075139

Guest




Code (PHP)

Fatal error: Call to undefined function showAttachfile() in C:\AppServ\www\t-ara_fanclub\viewtopic.php on line 78

<! 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>Webboard</title>
<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
<script language="javascript">
function addEmo(num) {
document.frmReply.detail.value = document.frmReply.detail.value + '[' + num + ']';
}
function checkNull () {
if (document.frmReply.detail.value=="" || document.frmReply.detail.value==null){
alert ('Please insert subject !');
document.frmReply.detail.focus();
return false;
}
document.frmReply.submit();
}
</script>
</head>

<body>
<br/>
<?php
include ("connect.php");
include ("function.php");

$sql = "update webboard_post set view=view+1 where question_id=".$_REQUEST['id'];
$query = mysql_query($sql) or die (mysql_error());

$sql = "select * from webboard_post where question_id=".$_REQUEST['id'];
$query = mysql_query($sql) or die (mysql_error());
$row = mysql_fetch_array($query);
?>

<table border="0" cellspacing="0" cellpadding="3"align="center" bgcolor="FAEBD7">
<tr height="300">
<td width="1010" background="images_1/images/branner1.gif" ></td>
</tr>
<tr height="35">
<td>
<a href="index.php">Home</a>&nbsp | &nbsp
<a href="Profiles.php" >Profiles</a>&nbsp | &nbsp
<a href="Album.php" >Album</a>&nbsp | &nbsp
<a href="About.php" >About</a>&nbsp | &nbsp
<a href="Photo.php" >Photo</a>&nbsp | &nbsp
<a href="webboard.php">Webboard</a>
</td>
</tr>
</table>
<table width="1012" class="square" cellpadding="4" cellspacing="1" align="center" valign="top">
<tr>
<td>
<a href="index.php"><br>&nbsp&nbsp&nbsp<u><font size="3px"color="FF3333" face ="Verdana, Arial, Helvetica, sans-serif">กลับไปสู่หน้าแรก</font></u></a>
</td>
</tr>
<TR>
<TD></TD>
</TR>
<TR><TD><TABLE BORDER WIDTH=100%></TR>
</table>
<table width="700" class="square" cellpadding="4" cellspacing="1" align="center">
<tr align="right">
<td width="20%" class="square" align="center">Subject</td>
<td width="80%" class="square" align="left"><?php echo $row['subject']?></td>
</tr>
<tr align="right">
<td width="20%" class="square" align="center">Detail</td>
<td width="80%" class="square" align="left">
<?php echo showEmo (badword($row['subject_detail']))?>
</td>
</tr>
<? if ($row['attach_file']<>"") { ?>
<tr align="right">
<td width="20%" class="square" align="center">Attach file</td>
<td width="80%" class="square" align="left">
<?php echo showAttachfile($row['attach_file']) ?>
</td>
</tr>
<? } ?>
<tr align="right">
<td width="20%" class="square" align="center">Name</td>
<td width="80%" class="square" align="left"><?php echo $row['name']?></td>
</tr>
<tr>
<td width="100" colspan="2" class="square" align="center">
Date : <?php echo dateShow ($row['datadate']) ?>
IP : <?php echo showIP ($row['ip_address']) ?>
View : <?php echo $row['view'] ?>
Reply : <?php echo $row['reply'] ?>
</td>
</tr>
</table><br/>

<?php
$sql = "select * from webboard_reply where question_id=".$_REQUEST['id'];
$query = mysql_query($sql) or die (mysql_error());
$num = mysql_num_rows($query);
if ($num>0){
for($i=0;$i<$num;$i++){
$row = mysql_fetch_array($query); ?>

<table width="700" class="square" cellpadding="4" cellspacing="1" align="center">
<tr align="center">
<td width="20%" class="square" align="center">Detail</td>
<td width="80%" class="square" align="left">
<?php echo showEmo(badword($row['reply_detail'])) ?>
</td>
</tr>
<? if ($row['attach_file']<>"") { ?>
<tr align="center">
<td width="20%" class="square" align="center">Attach file</td>
<td width="80%" class="square" align="left">
<?php echo showAttachfile ($row['attach_file']) ?>
</td>
</tr>
<? } ?>
<tr align="center">
<td width="20%" class="square" align="center">Name</td>
<td width="80%" class="square" align="left"><?php echo $row['name'] ?></td>
</tr>
<br/>
<tr>
<td width="100%" colspan="2"class="square" align="center">
Date : <?php echo dateShow ($row['datadate']) ?>
IP : <?php echo showIP($row['ip_address']) ?>
</td>
</tr>
</table><br/>
<? }
} ?><br/>
<form id="frmReply" name="frmReply" enctype="multipart/form-data" method="post"
action="insertreply.php" onsubmit="checkNull();return false;">
<table width="700" class="square" cellpadding="4" cellspacing="1" align="center">
<tr align="right">
<td width="20%" class="square" align="center">Detail</td>
<td width="20%" class="square" align="left">
<textarea name="detail" rows="4" class="verdana" id="detail" style="width : 500px"></textarea>
</td>
</tr>
<tr align="right">
<td width="20%" class="square" align="center">Emo</td>
<td width="80%" class="square" align="left">
<? for($i=1;$i<15;$i++) { ?>
<img src="emo/<?php echo $i?>.gif" onclick="addEmo (<?php echo $i?>)" width="8%"/>
<? } ?>
</td>
</tr>
<tr>
<td width="20%" class="square" align="center">Attach file</td>
<td width="80%" class="square" align="left">
<input type="file" id="attach" name="attach" class="verdana" />
</td>
</tr>
<tr>
<td width="20%" class="square" align="center">Name</td>
<td width="80%" class="square" align="left">
<input type="text" id="name" name="name" style="width : 444px" class="verdana" />
<input type="hidden" id="id" name="id" value="<? echo $_REQUEST['id'] ?>" />
<input type="submit" value="Post" class="verdana" />
</td>
</tr>
</table><br>
</form>

</body>
</html>



Tag : PHP, HTML/CSS







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2012-03-07 18:10:12 By : new View : 804 Reply : 1
 

 

No. 1



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



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


https://www.thaicreate.com/php/forum/075140.html#00262979






แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-03-07 19:44:20 By : 000su000
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : มันขึ้น error แบบนี้แก้ยังไงค่ะ ช่วยดูให้หน่อยนะคะ ทำยังไงก็ไม่ได้แล้วค่ะ
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ 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 03
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 อัตราราคา คลิกที่นี่