|
 |
|
ถามเกี่ยวกับโปรเจคหน่อย...ช่วยที่ค่ะ คือว่า ทำโปรเจคเรื่อง ระบบแจ้งซ่อมออนไลน์อะ ทำแบบฟอร์ม |
|
 |
|
|
 |
 |
|
ก้อลองเพิ่ม ฟิลด์ อีกฟิลด์ แล้วให้มีค่า 1,2 แล้วใช้เงื่อนใข ว่าถ้าเป้น 1 กำลังซ่อม เป็น 2 ซ่อมเสร้จแล้ว ตอนแสดงบนหน้าเว็บ
|
 |
 |
 |
 |
Date :
2009-09-02 17:35:17 |
By :
happyber |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
สถานะ ผมกำหนดเป็น status เพื่อเอาไว้เชคครับ
เช่นผมกำหนดฟิลด์ขึ้นมาเพื่มกับตัว เรื่องที่แจ้ง แล้วกำหนดให้มัน
1 คือ รับแจ้ง
2 คือ กำลังดำเนินการ
3 คือ เสร็จสิ้น แล้วอัปลงฐานข้อมูลเลยครับ
ดังตัวอย่าง
https://www.thaicreate.com/freelance/000175.html
http://tcode.freevar.com/index.php
admin user : bbbb
admin pass : bbbb
user : aaaa
userpass : aaaa
ลองเข้าไปทดสอบ เพื่อเป็นไกด์ครับ
deawx
[email protected]
ปรึกษา PHP ฟรีจ้า
|
 |
 |
 |
 |
Date :
2009-09-02 17:49:03 |
By :
deawx |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เพิ่ม ฟิลด์ อีกฟิลด์ แล้วให้มีค่า 1,2 แล้วใช้เงื่อนใข ว่าถ้าเป้น 1 กำลังซ่อม เป็น 2 << ให้ค่านี้มันทำยังไงอา ช่วยบอกที่
พอดีเขียนไรไม่ค่อยจาเป็นพึ่งเริ่มเขียนเอง
|
 |
 |
 |
 |
Date :
2009-09-04 15:14:14 |
By :
เด็กน้อย |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
<?php
//ดึงข้อมูลมาตรวจสอบโดยตรวจสอบจาก status 1,2
if($row['status']==1)
{ echo"กำลังซ่อมค่ะ"; }
else if($row['status']==2)
{ echo"ซ่อมเสร็จแล้วค่ะ"; }
else
{ echo"ยังไม่มีรายการซ่อมค่ะ"; }
?>
ประมาณนี้หรือครับ
|
 |
 |
 |
 |
Date :
2009-09-04 15:31:00 |
By :
somparn |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
พี่เดี่ยวแหมๆ สาวๆขอความช่วยเหลือหนิ ช่วยเร็ว เลย น้า
อิ อิ
|
 |
 |
 |
 |
Date :
2009-09-05 10:38:47 |
By :
popnakub |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ข้างบนนี้คือกำหนดค่า สถานะใช่ไหมค่ะ แต่พอกำหนดค่าเสร็จแล้ว จะใช้งาน จากการเปลี่ยนสถานะหนึ่ง ไปสถานะหนึ่ง
เช่น กำลังซ่อมเป็น ซ่อมเสร็จแล้ว ประมาณแบบว่า หน้า แอดมิน ที่มีให้เลือกสถานะอะค่ะ ต้องเขียนโค๊ดยังไงค่ะ
ช่วยแนะนำ หน่อย
|
 |
 |
 |
 |
Date :
2009-09-08 00:56:08 |
By :
เด็กน้อย |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ช่วยตอบที่นา....
|
 |
 |
 |
 |
Date :
2009-09-08 12:00:00 |
By :
เด็กน้อย |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ข้างบนนี้คือกำหนดค่า สถานะใช่ไหมค่ะ แต่พอกำหนดค่าเสร็จแล้ว จะใช้งาน จากการเปลี่ยนสถานะหนึ่ง ไปสถานะหนึ่ง
เช่น กำลังซ่อมเป็น ซ่อมเสร็จแล้ว ประมาณแบบว่า หน้า แอดมิน ที่มีให้เลือกสถานะอะค่ะ ต้องเขียนโค๊ดยังไงค่ะ
ช่วยแนะนำ หน่อย
|
 |
 |
 |
 |
Date :
2009-09-08 14:46:51 |
By :
เด็กน้อย |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เปล่าได๋ ไม่ได้ช่วยเฉพาะหญิง ชายก็ช่วย เว้นแต่ว่าได้เข้ามาเปล่าแค่นั้น
แม๊ะ ๆ พวกนี้ เด่วปั๊ดเหี่ยว
|
 |
 |
 |
 |
Date :
2009-09-08 16:19:42 |
By :
deawx |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เอาเทเบิล มากางดูเลยดีกว่าครับ ว่า Design อย่างไร และ โค้ดที่เขียนไว้ มันเป็นอย่างไรครับ เพราะผมมีตัวอย่างที่พอจะดูง่าย ๆ อยู่ ประมาณนี้ครับ

ซึ่งผมใช้วิธีการ เช็ค ค่าฟิว หลักการเดียวกับท่าน phpbasic แต่ของผม admin จะมาทำการคลิกที่ปุ่มนี้เลย ว่าเสร็จไปแล้ว หรือยังไม่เสร็จ แต่ในตัวอย่าง จะเป็นการ อนุมัติ ให้แสดงหน้าข่าวครับ
|
 |
 |
 |
 |
Date :
2009-09-08 16:41:26 |
By :
kalamell |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ก้อคิดว่าจะDesign ประมาณนี้ละค่ะ แบบว่าต้องช่องอนุญาติ ก้อจะเป็น สถานะ กำลังซ่อม ซ่อมเสดแล้ว ใช่เลย
อยากทำแบบนี้ละทำไงอะค่ะ คุณ U
|
 |
 |
 |
 |
Date :
2009-09-08 20:11:45 |
By :
เด็กน้อย |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณค่ะ คุณ Sek-Artdrinker แต่ว่าอยากให้มีคนช่วยตอบ ช่วยทำ แบบ ว่าอยากให้เสร็จเร็วๆอะ เมล์ไปขอแล้วเหมือนกันแต่ไม่รู้ว่าเมื่อไรเขาจะส่งกลับมาให้ อะ....ใครมีวิธี มีโค๊ดคล้ายๆแบบนี้ช่วยที่นะ หรือว่ามาอธิบายให้ทำตามก้อได้ ช่วยที่นะๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆ
|
 |
 |
 |
 |
Date :
2009-09-08 20:45:31 |
By :
เด็กน้อย |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
<?php
<?
include "connect.php";
if ($submit=="ºÑ¹·Ö¡"){
$sql="insert into request set reqid='".$id."',sts='1';
mysql_query($sql)or die(mysql_error());
}
if ($sts=="2"){
$sql="update into request set sts='2' where reqid= '".$id."';
mysql_query($sql)or die(mysql_error());
}
?>
<html>
<head>
<title>sek-artdrinker</title>
</head>
<body>
<table width="100%" border="1">
<tr bgcolor="#00FF00">
<td width="12%"><div align="center"><span class="style3">request id</span></div></td>
<td width="20%"><div align="center"><span class="style3">status</span></div></td>
<td width="20%"><div align="center"><span class="style3">maintain</span></div></td>
</tr>
<?
$sql="select * from sub or";
$re=mysql_query($sql);
while ($row=mysql_fetch_array($re)){
?>
<tr >
<td><? echo $row["reqid"]?></td>
<td><?
$sts = $row["sts"];
if ($sts=="1"){
echo ="req pending";
}else{
echo ="req done";
} ?>
</td>
<td>
<a href="test.php?sts=2&id=<?echo $row["reqid"]?>" ?>">close request</a>
</td>
</tr>
<? } ?>
</table>
<form action="test.php" method="post" enctype="multipart/form-data" name="frm">
<table width="105%" >
<tr> <td valign="top" bgcolor="#00CCFF"><div align="right">req id</div></td>
<td> <input name="id" type="text" id=""size="80">
</td> </tr>
<tr>
<td><div align="left"></div></td>
<td><input name="submit" type="submit" id="submit" value="ºÑ¹·Ö¡"></td>
</tr>
</table>
</form>
</body>
</html>
?>
น่าจะเข้าใจนะครับ
สงสัยถามนะครับ ผมจะกลับแล้ววววว
|
 |
 |
 |
 |
Date :
2009-09-08 21:15:27 |
By :
Sek-Artdrinker |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
<?php
$sts = $row["sts"];
if ($sts=="1"){
echo "req pending";
}else{
echo "req done";
} ?>
?>
ผิด บรรทัด 35-40
|
 |
 |
 |
 |
Date :
2009-09-08 21:17:07 |
By :
Sek-Artdrinker |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
<?php
$sql="select * from request";
?>
บรรทัด 27
รีบไปหน่อยครับ
|
 |
 |
 |
 |
Date :
2009-09-08 21:19:09 |
By :
Sek-Artdrinker |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|

|
 |
 |
 |
 |
Date :
2009-09-09 08:15:45 |
By :
gummezaka |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เอาน่าครับ เห็นบางที บอร์ดนี้มีคนเข้ามาโพสขายยาดีอยู่ มะต้องกลัว
|
 |
 |
 |
 |
Date :
2009-09-09 09:35:40 |
By :
Sek-Artdrinker |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 04
|