|
 |
|
ช่วยผมทีคับ T^Y หลายชั่วโมงแร้วยังไม่ผ่านเลย ผมต้องแก้ตรงไหนหรอคับ |
|
 |
|
|
 |
 |
|
แล้วมันขึ้น error ว่ายังไงอะครับ?
คุณต้องการจะทำอะไร?
มันมีปัญหายังไง?
ถ้าไม่บอกมาก็คงตอบให้ไม่ถูกหรอกครับ
กรุณาระบุมาด้วยนะครับ
|
 |
 |
 |
 |
Date :
2009-07-20 22:03:30 |
By :
iamatomix |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มันฟ้อง แบบเนี้ย คับ
Parse error: syntax error, unexpected '/' in C:\AppServ\www\starwell\admin_type.php on line 64
ผมทำตามในหนังสือนะคับ ก็ยังไปต่อไม่ได้เลย
|
 |
 |
 |
 |
Date :
2009-07-20 22:10:30 |
By :
tanuwate |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
echo "
<tr>
<td><center>$no</center></td>
<td>$type_name</td>
<td><a href=\"admin_type_edit.php?id_edit=$type_id\">[ Edit ]</a></td>
<td><a href=\"admin_type_delete.php?id_edit=$type_id\" onclick =\" return confirm('ยืนยันลบประเภทสินค้า $type_name ออกจากระบบ')\">[ Delete ]</a></td>
</tr>":
|
 |
 |
 |
 |
Date :
2009-07-20 23:37:51 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แก้ให้ใหม่ครับ
<?
session_start();
if ($sess_adminid<>session_id()){
header("Location: admin.php");
exit();
}
include "connect.php";
$sql="select * from tb_type_product";
$result=mysql_db_query($dbname,$sql);
$number=mysql_num_rows($result);
$no=1;
?>
<html>
<style type="text/css">
<!--
.style1 {
font-family: Geneva, Arial, Helvetica, sans-serif;
color: #666666;
font-size: 11px;
}
.style2 {
font-family: Geneva, Arial, Helvetica, sans-serif;
color: #666666;
font-size: 14px;
font-weight: bold;
}
-->
</style>
<head><title>ร้านค้าออนไลน์ สำหรับผู้ดูแลระบบ</title></head>
<body>
<? include "admin_menu.php" ?>
<form method="post" action="admin_type_add.php">
Insert Type Product New :: <input type="text" name="name" >
<input type="submit" name="submit " value=" Add New Type Product " >
</form>
<?
if ($number<>0){
echo "
<p><b>Type Product</b></p>
<table border='1'>
<tr BGCOLOR=' #E8E8E8 '>
<td> <center><b> ลำดับ </b></center></td>
<td> <center><b> Product Type </b></center></td>
<td> <center><b> Edit </b></center></td>
<td> <center><b> Delete </b></center></td>
</tr>";
while($rs=mysql_fetch_array($result)){
$id_type=$rs[type_id];
$name_type=$rs[type_name];
echo "
<tr>
<td><center>$no</center></td>
<td>$type_name</td>
<td><a href=\"admin_type_edit.php?id_edit=$type_id\">[ Edit ]</a></td>
<td><a href=\"admin_type_delete.php?id_edit=$type_id\" onclick =\" return confirm('ยืนยันลบประเภทสินค้า $type_name ออกจากระบบ')\">[ Delete ]</a></td>
</tr>";
$no++ ;
}
echo "< /table >";
mysql_close();
}
?>
</body>
</html>
|
 |
 |
 |
 |
Date :
2009-07-21 07:57:02 |
By :
ariya99 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณพี่ ๆ มากเลลยนะครับ T^Yเด๋วโหวดให้นะคับ
|
 |
 |
 |
 |
Date :
2009-07-21 10:36:22 |
By :
tanuwate |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 03
|