 |
error mysql_fetch_array(): ช่วยด้วยครับ จะแก้ปัญหาอย่างไรดี |
|
 |
|
|
 |
 |
|
ต้องขออภัย ลืม login เราจะทำอย่างไรดี ครับ เพื่อแก้ปัญหาตรงนี้
<?
session_start();
if($_SESSION['Emp_ID'] == "")
{
echo "Please Login!";
exit();
}
/*if($_SESSION['Status'] != "ADMIN")
{
echo "This page for ADMIN only!";
exit();
}*/
mysql_connect("localhost","root","root");
mysql_select_db("laundry");
$strSQL = "SELECT * FROM employee WHERE Emp_ID = '".$_SESSION['Emp_ID']."' ";
$objQuery = mysql_query($strSQL);
$objResult = mysql_fetch_array($objQuery);
?>
<?php
// ก่อนอื่นทำการรับ id ที่ส่งมาทาง query string ก่อนเลยครับ
$Cus_ID = $_GET['Cus_ID'];
// จากนั้นทำการเชื่อมฐานข้อมูล
mysql_connect("localhost", "root", "root");
mysql_select_db("Laundry");
mysql_query("SET NAMES UTF8");
// เมื่อเราเชื่อมฐานข้อมูลเรียบร้อยแล้วให้เราทำการคิวรี่หา detail ของ id ที่เรารับค่ามา
$sqlDetail = "SELECT * FROM customer WHERE $Cus_ID = $Cus_ID";
$rs = mysql_query($sqlDetail) or die (mysql_error());
// เนื่องจากว่าข้อมูลที่ได้กลับมานั้นมีเพียงเรคอร์ดเดียวเท่านั้น (เพราะว่า id นั้น ๆ จะเป็นคุณสมบัติ unique)
// ซึ่ง id หนึ่งมีได้เพียงข้อมูลแถวเดียวเท่านั้น ดังนั้นเราก็ไม่จำเป็นต้องทำการวนลูปเพื่อดึงข้อมูลจาก resource
$row = mysql_fetch_array($rs);
//$Cus_ID = $row['Cus_ID'];
$Cus_Name = $row['Cus_Name'];
$Cus_Address = $row['Cus_Address'];
$Email = $row['Email'];
$User = $row['User'];
$Pass = $row['Pass'];
$Telephon = $row['Telephon'];
$Status = $row['Status'];
/* หรือจะใช้เป็นคำสั่งนี้ก็ได้ครับ
list($prod_name, $price, $quantity) = $row;
*/
?>
<html>
<head>
<title>การบริการซักรีด</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript">
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
</script>
<style>
BODY {
FONT-FAMILY: Arial, Helvetica, sans-serif;
background-color: #DEDBDE;
background-image: url(images/200807-08-115541-1.jpg);
}
</style>
<center>
<b><u><font size="5">บริการซักรีด</font></u></b>
</center>
<div align="center">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<title>ยินดีต้อนรับ คุณ <?php echo "$txtUsername"; ?></title>
<body>
<p align="center"><b><font face="MS Sans Serif" size="5" color="#000080">ยินดีต้อนรับครับ คุณ <?=$objResult["User"];?> ครับ </font></b><font face="MS Sans Serif" size="1"><a href="logout.php">Logout ออกจากระบบ</a></font><br>
<br>
<?php
function DateThai($strDate)
{
$strYear = date("Y",strtotime($strDate))+543;
$strMonth= date("n",strtotime($strDate));
$strDay= date("j",strtotime($strDate));
$strHour= date("H",strtotime($strDate));
$strMinute= date("i",strtotime($strDate));
$strSeconds= date("s",strtotime($strDate));
$strMonthCut = Array("","ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค.");
$strMonthThai=$strMonthCut[$strMonth];
return "$strDay $strMonthThai $strYear, $strHour:$strMinute";
}
$strDate = "$strYear $strHour";
echo "วันที่ : ".DateThai($strDate);
?>
</p>
</div>
<center>
[ <a href="cart.php" onClick="NewWindow(this.href,'name','600','400','yes');return false">ตะกร้าบริการซักรีด</a> ] [ <a href="manageorder.php">แสดงรายการคำบริการซักรีด</a> ]
</center>
<br><br>
<center>
<<รายการซักรีด>>
</center>
<br><br>
<center>
<p><<>>
</p>
<p>
<?=$sqlDetail;?>
</p>
<p>
<?=$Cus_ID;?>
</p>
<p> </p>
<p>
<?php
mysql_select_db($dbname);
mysql_query("SET NAMES UTF8");
$sql_a = "SELECT * FROM service ORDER BY ServiceID ASC";
$rs = mysql_query($sql_a);
?>
<p>
<form name="form1" method="post" action="searchservice.php">
<p>
<label for="search"></label>
</p>
<div align="center">
<table width="600" border="1">
<tr>
<th>รหัส</th>
<th>รายละเอียด</th>
<th>ราคา</th>
<th>คำสั่ง</th>
</tr>
<?php
while($row = mysql_fetch_array($rs)) {
echo "<tr>" .
"<td align='center'>" . $row['ServiceID'] . "</td>" .
"<td>" . $row['Detail'] . "</td>" .
"<td align='right'>" . $row['Price'] . "</td>" .
"<td align='center'>" .
"<a target=_blank a href='orderservice.php?ServiceID=" . $row['ServiceID'] . "'> สั่งซื้อ</a> " .
"</td>".
"</tr>";
}
?>
</table>
</div>
</form></p>
</center>
<p>
<?php
$sql = "SELECT * FROM tbl_product ORDER BY id ASC";
$rs = mysql_query($sql);
?>
<p>
<form name="form1" method="post" action="Search_Product.php">
<p>
<label for="search"></label>
</p>
<div align="center">
<table width="600" border="1">
<tr>
<th>ลำดับ</th>
<th>ชื่อสินค้า</th>
<th>ยี่ห้อ</th>
<th>รายละเอียด</th>
<th>ราคา</th>
<th>จำนวน</th>
<th>คำสั่ง</th>
</tr>
<?php
while($row = mysql_fetch_array($rs)) {
echo "<tr>" .
"<td align='center'>" . $row['prod_id'] . "</td>" .
"<td>" . $row['prod_name'] . "</td>" .
"<td>" . $row['Brand'] . "</td>" .
"<td>" . $row['Detail_Pro'] . "</td>" .
"<td align='right'>" . $row['price'] . "</td>" .
"<td align='center'>" . $row['Qty'] . "</td>" .
"<td align='center'>" .
"<a target=_blank a href='orderproduct.php?prod_id=" . $row['prod_id'] . "'> สั่งซื้อ</a> " .
"</td>".
"</tr>";
}
?>
</table>
</div>
</form>
<br>
</p>
</body>
</html>
|
 |
 |
 |
 |
Date :
2012-02-15 21:38:31 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
line 190 มันอยู่ตรงไหนของประเทศไทยครับ 
|
 |
 |
 |
 |
Date :
2012-02-15 21:56:39 |
By :
ikikkok |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เด๋วผมดูให้ครับ พูดซะฮาเลยครับ
55555+
|
 |
 |
 |
 |
Date :
2012-02-15 22:00:45 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|

|
 |
 |
 |
 |
Date :
2012-02-15 22:03:09 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เฝ้า แต่ รอ รอ รอ รอ รอ
|
 |
 |
 |
 |
Date :
2012-02-15 22:35:18 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ได้โปรดอย่าลืม บอร์ดนี้
|
 |
 |
 |
 |
Date :
2012-02-15 22:40:00 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เมื่อใส่ or die(mysql_error().":<br />".$sql_select) ;
ผลลัพที่ได้
Unknown column 'id' in 'order clause':
|
 |
 |
 |
 |
Date :
2012-02-15 22:50:44 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แล้วเจ้าตัวแปร $rs ที่อยู่ในฟังก์ชั่น mysql_fetch_array() อยู่บรรทัดที่เท่าไหร่ครับ เอามาดูครับ
|
 |
 |
 |
 |
Date :
2012-02-15 22:53:10 |
By :
sakuraei |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เย้ เย้ มาแล้ว
พี่ครับ ก๊อปปี้ code ยังไงให้เห็นบรรทัดครับ
|
 |
 |
 |
 |
Date :
2012-02-15 22:55:38 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|

|
 |
 |
 |
 |
Date :
2012-02-15 22:58:25 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
กดไอคอนรูป PHP Code ที่มุมขวาบนของกรอบเขียนข้อความล่ะครับ
พอกดแล้วมันจะมีคำสั่งขึ้นมา ให้เราเอาโค้ด มาวางไว้ตรงตำแหน่งที่มีเคอร์เซอร์กระพริบอยู่ ก็จบล่ะ
\Code (PHP)
\..................................
\
|
 |
 |
 |
 |
Date :
2012-02-15 23:01:07 |
By :
sakuraei |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ในบรรทัดที่ 133 ให้แก้โค้ดใหม่ตามนี้น่ะ
Code (PHP)
$rs = mysql_query($sql_a) or die(mysql_error().":".$sql_a);
ผิดๆๆ บรรทัดที่ 137
|
ประวัติการแก้ไข 2012-02-15 23:04:57
 |
 |
 |
 |
Date :
2012-02-15 23:03:50 |
By :
sakuraei |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตรงไหนหรือครับ ทำไม่เป็น
|
 |
 |
 |
 |
Date :
2012-02-15 23:06:57 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
กำ หาย หมดเลยครับ
ผลลัพที่ได้ คือ
Query was empty:
ครับ
|
 |
 |
 |
 |
Date :
2012-02-15 23:09:15 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แสดงว่าโค้ดที่ได้มาทั้งหมด ไม่รู้ที่มาที่ไปเลยหรอครับ
........ งั้นก็จบข่าวครับ
|
 |
 |
 |
 |
Date :
2012-02-15 23:10:07 |
By :
sakuraei |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ป่าวครับ ที่ผมพูดว่าทำไม่เป็น คือ ก๊อปปี้ code ที่มีบรรทัดครับ
|
 |
 |
 |
 |
Date :
2012-02-15 23:11:34 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มันก็บอก Unknown column 'id' in 'order clause': ไม่พบ ฟิว id ครับลอง check ตรงนี้ดูครับ
|
 |
 |
 |
 |
Date :
2012-02-15 23:12:23 |
By :
slurpee55555 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ส่วน code ผม
ผมทำเองครับ ผมรู้ที่มาที่ไปครับ
อย่าพึ่งจบข่าวครับ ช่วยหน่อยครับ
|
 |
 |
 |
 |
Date :
2012-02-15 23:13:17 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มันต้อง order by prod_id asc หรือป่าวครับ
|
 |
 |
 |
 |
Date :
2012-02-15 23:15:35 |
By :
slurpee55555 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
นี่คือ ตาราง service ครับ

|
 |
 |
 |
 |
Date :
2012-02-15 23:16:29 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
$sql = "SELECT * FROM tbl_product ORDER BY prod_id ASC";
$rs = mysql_query($sql);
|
 |
 |
 |
 |
Date :
2012-02-15 23:17:24 |
By :
slurpee55555 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ถูกต้องนะครับ ใช่เลยครับ
โอ้โห เยี่ยมมากเลยครับ
ขอบคุณมากครับ
|
 |
 |
 |
 |
Date :
2012-02-15 23:19:08 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
  
|
 |
 |
 |
 |
Date :
2012-02-15 23:19:32 |
By :
slurpee55555 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อย่าพึ่งไปนะครับ ขอวิธีก๊อปปี้ code แบบมีบรรทัดให้ผมหน่อยครับ
ผมขอรายละเอียดหน่อย ขอบคุณครับ
|
 |
 |
 |
 |
Date :
2012-02-15 23:21:29 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
จะ copy ลงในนี้เหรอครับ
|
 |
 |
 |
 |
Date :
2012-02-15 23:24:51 |
By :
slurpee55555 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ใช่ครับ
ลงในนี้ครับ
|
 |
 |
 |
 |
Date :
2012-02-15 23:26:08 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ก่อนเขียนข้อความ มองให้กว้างๆ ลองไล่ดูรูปไอค่อนต่างๆ ลองผิดลองถูกไม่มีใครว่าครับ
|
 |
 |
 |
 |
Date :
2012-02-15 23:26:27 |
By :
sakuraei |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ถ้าจะทำในนี้ สังเกต ทางด้านขวา จะมี icon PHP Code กดมันแล้วจะปรากฎแท็กขึ้นมา นำ code มาใส่ในระว่าแท็กครับ
|
 |
 |
 |
 |
Date :
2012-02-15 23:27:48 |
By :
slurpee55555 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
code ที่อยู่ใน dream ใช่มั้ยครับ
|
 |
 |
 |
 |
Date :
2012-02-15 23:34:46 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ใช่ครับ 
|
 |
 |
 |
 |
Date :
2012-02-15 23:38:11 |
By :
slurpee55555 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Dream ของผมเป็นแบบเนี้ยครับ หา icon ไม่เจอ

|
 |
 |
 |
 |
Date :
2012-02-15 23:46:19 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|

|
 |
 |
 |
 |
Date :
2012-02-15 23:53:25 |
By :
slurpee55555 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อ๋อ กระจ่าง แล้วครับ
กว่าจะสื่อสารเข้าใจ ไปกันคนละทิศคนละทาง 555
ขอบคุณครับ คุณ....
ชื่อไรครับ
|
 |
 |
 |
 |
Date :
2012-02-15 23:55:23 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เทส
Code (PHP)
<?
session_start();
if($_SESSION['Emp_ID'] == "")
{
echo "Please Login!";
exit();
}
/*if($_SESSION['Status'] != "ADMIN")
{
echo "This page for ADMIN only!";
exit();
}*/
mysql_connect("localhost","root","root");
mysql_select_db("laundry");
$strSQL = "SELECT * FROM employee WHERE Emp_ID = '".$_SESSION['Emp_ID']."' ";
$objQuery = mysql_query($strSQL);
$objResult = mysql_fetch_array($objQuery);
?>
<?php
// ก่อนอื่นทำการรับ id ที่ส่งมาทาง query string ก่อนเลยครับ
$Cus_ID = $_GET['Cus_ID'];
// จากนั้นทำการเชื่อมฐานข้อมูล
mysql_connect("localhost", "root", "root");
mysql_select_db("Laundry");
mysql_query("SET NAMES UTF8");
// เมื่อเราเชื่อมฐานข้อมูลเรียบร้อยแล้วให้เราทำการคิวรี่หา detail ของ id ที่เรารับค่ามา
$sqlDetail = "SELECT * FROM customer WHERE $Cus_ID = $Cus_ID";
$rs = mysql_query($sqlDetail) or die (mysql_error());
// เนื่องจากว่าข้อมูลที่ได้กลับมานั้นมีเพียงเรคอร์ดเดียวเท่านั้น (เพราะว่า id นั้น ๆ จะเป็นคุณสมบัติ unique)
// ซึ่ง id หนึ่งมีได้เพียงข้อมูลแถวเดียวเท่านั้น ดังนั้นเราก็ไม่จำเป็นต้องทำการวนลูปเพื่อดึงข้อมูลจาก resource
$row = mysql_fetch_array($rs);
//$Cus_ID = $row['Cus_ID'];
$Cus_Name = $row['Cus_Name'];
$Cus_Address = $row['Cus_Address'];
$Email = $row['Email'];
$User = $row['User'];
$Pass = $row['Pass'];
$Telephon = $row['Telephon'];
$Status = $row['Status'];
/* หรือจะใช้เป็นคำสั่งนี้ก็ได้ครับ
list($prod_name, $price, $quantity) = $row;
*/
?>
<html>
<head>
<title>การบริการซักรีด</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript">
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
</script>
<style>
BODY {
FONT-FAMILY: Arial, Helvetica, sans-serif;
background-color: #DEDBDE;
background-image: url(images/200807-08-115541-1.jpg);
}
</style>
<center>
<b><u><font size="5">บริการซักรีด</font></u></b>
</center>
<div align="center">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<title>ยินดีต้อนรับ คุณ <?php echo "$txtUsername"; ?></title>
<body>
<p align="center"><b><font face="MS Sans Serif" size="5" color="#000080">ยินดีต้อนรับครับ คุณ <?=$objResult["User"];?> ครับ </font></b><font face="MS Sans Serif" size="1"><a href="logout.php">Logout ออกจากระบบ</a></font><br>
<br>
<?php
function DateThai($strDate)
{
$strYear = date("Y",strtotime($strDate))+543;
$strMonth= date("n",strtotime($strDate));
$strDay= date("j",strtotime($strDate));
$strHour= date("H",strtotime($strDate));
$strMinute= date("i",strtotime($strDate));
$strSeconds= date("s",strtotime($strDate));
$strMonthCut = Array("","ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค.");
$strMonthThai=$strMonthCut[$strMonth];
return "$strDay $strMonthThai $strYear, $strHour:$strMinute";
}
$strDate = "$strYear $strHour";
echo "วันที่ : ".DateThai($strDate);
?>
</p>
</div>
<center>
[ <a href="cart.php" onClick="NewWindow(this.href,'name','600','400','yes');return false">ตะกร้าบริการซักรีด</a> ] [ <a href="manageorder.php">แสดงรายการคำบริการซักรีด</a> ]
</center>
<br><br>
<center>
<<รายการซักรีด>>
</center>
<br><br>
<center>
<p><<>>
</p>
<p>
<?=$sqlDetail;?>
</p>
<p>
<?=$Cus_ID;?>
</p>
<p> </p>
<p>
<?php
mysql_query("SET NAMES UTF8");
$sql_a = "SELECT * FROM service ORDER BY ServiceID ASC";
$rs = mysql_query($sql_a);
?>
<p>
<form name="form1" method="post" action="searchservice.php">
<p>
<label for="search"></label>
</p>
<div align="center">
<table width="600" border="1">
<tr>
<th>รหัส</th>
<th>รายละเอียด</th>
<th>ราคา</th>
<th>คำสั่ง</th>
</tr>
<?php
while($row = mysql_fetch_array($rs)) {
echo "<tr>" .
"<td align='center'>" . $row['ServiceID'] . "</td>" .
"<td>" . $row['Detail'] . "</td>" .
"<td align='right'>" . $row['Price'] . "</td>" .
"<td align='center'>" .
"<a target=_blank a href='orderservice.php?ServiceID=" . $row['ServiceID'] . "'> สั่งซื้อ</a> " .
"</td>".
"</tr>";
}
?>
</table>
</div>
</form></p>
</center>
<p>
<?php
$sql = "SELECT * FROM tbl_product ORDER BY prod_id ASC";
$rs = mysql_query($sql) or die(mysql_error().":<br />".$sql_select);
?>
<p>
<form name="form1" method="post" action="Search_Product.php">
<p>
<label for="search"></label>
</p>
<div align="center">
<table width="600" border="1">
<tr>
<th>รหัสสินค้า</th>
<th>ชื่อสินค้า</th>
<th>ยี่ห้อ</th>
<th>รายละเอียด</th>
<th>ราคา</th>
<th>จำนวน</th>
<th>คำสั่ง</th>
</tr>
<?php
while($row = mysql_fetch_array($rs)) {
echo "<tr>" .
"<td align='center'>" . $row['prod_id'] . "</td>" .
"<td>" . $row['prod_name'] . "</td>" .
"<td>" . $row['Brand'] . "</td>" .
"<td>" . $row['Detail_Pro'] . "</td>" .
"<td align='right'>" . $row['price'] . "</td>" .
"<td align='center'>" . $row['Qty'] . "</td>" .
"<td align='center'>" .
"<a target=_blank a href='orderproduct.php?prod_id=" . $row['prod_id'] . "'> สั่งซื้อ</a> " .
"</td>".
"</tr>";
}
?>
</table>
</div>
</form>
<br>
</p>
</body>
</html>
|
 |
 |
 |
 |
Date :
2012-02-15 23:56:04 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตอนนี้ถึงไหนล่ะครับ
|
 |
 |
 |
 |
Date :
2012-02-16 00:04:08 |
By :
sakuraei |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อะไรถึงไหนครับแก้ error หรือ ว่า copy code แบบมีบรรทัดครับ
|
 |
 |
 |
 |
Date :
2012-02-16 00:11:48 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตัวโปรแกรมซิครับ
|
 |
 |
 |
 |
Date :
2012-02-16 00:14:51 |
By :
sakuraei |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อ๋อ แก้ error ได้แล้วครับ
ขอบคุณครับ
ชื่อไรครับ
|
 |
 |
 |
 |
Date :
2012-02-16 00:20:56 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ต้องเรียกผม พี่ล่ะครับ อายุมากโขแล้วครับ
พีป๋องครับ
|
 |
 |
 |
 |
Date :
2012-02-16 00:25:39 |
By :
sakuraei |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อ๋อ ครับ พี่ป๋อง
แล้วคนที่ถ่ายรูป ชื่อไรหรอครับ
|
 |
 |
 |
 |
Date :
2012-02-16 00:30:44 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมเองก็ไม่ทราบครับ เพราะไม่ได้เข้ามาตอบบ่อยนัก
|
 |
 |
 |
 |
Date :
2012-02-16 00:39:15 |
By :
sakuraei |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เรียกตามชือในเว็บก็ได้ครับ 
|
 |
 |
 |
 |
Date :
2012-02-16 01:13:21 |
By :
ikikkok |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมเบสครับ เรียกตามชื่อในเว็บก็ได้ครับ ตามที่พี่ PlaKriM บอกนะครับ
|
 |
 |
 |
 |
Date :
2012-02-16 08:33:37 |
By :
slurpee55555 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
รับทราบครับ
|
 |
 |
 |
 |
Date :
2012-02-16 10:44:24 |
By :
Dongonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|