|
 |
|
รบกวนช่วย หน่อยนะคะ มันขึ้นว่า ไมสามารถหาค่าต่ำสุดได้ |
|
 |
|
|
 |
 |
|
มันขึ้นว่า ไมสามารถหาค่าต่ำสุดได้
น่ะค่ะ
|
 |
 |
 |
 |
Date :
2009-10-04 16:07:28 |
By :
ไอติม |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
$SQL= " SELECT MIN(id_banner) as minno FROM tb_banner";
$submin1 = mysql_query( $SQL, $Conn) or die("ไมสามารถหาค่าต่ำสุดได้");
$submin2 = mysql_fetch_array($submin1);
$bannermin= $submin2["minno"];
$SQL= "SELECT MAX(id_banner) as maxno FROM tb_banner";
$submax1 = mysql_query($SQL,$Conn) or die("ไมสามารถหาค่าสูงสุดได้");
$submax2 = mysql_fetch_array($submax1);
$bannermin = $submax2["maxno"];
ไม่ตั้งคำถามเลยแห่ะ แต่จะตอบให้ใช่อันนี้ป่ะ
|
 |
 |
 |
 |
Date :
2009-10-04 16:16:28 |
By :
xbeginner01 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
oops! คำถามมาแล้ว 
เหตุที่ขึ้น error เพราะ MIN(xx) ระหว่างคำว่า MIN กับ ( ไม่มีช่องว่างน่ะครับ
แล้วเห็นผิดหลายที่ด้วย อย่าลืมใส่ as
|
 |
 |
 |
 |
Date :
2009-10-04 16:19:36 |
By :
xbeginner01 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|

ขอบคุณมาก นะคะ
|
 |
 |
 |
 |
Date :
2009-10-04 16:36:50 |
By :
ไอติม |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
  
|
 |
 |
 |
 |
Date :
2009-10-04 17:55:10 |
By :
NanoTHoro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
 
|
 |
 |
 |
 |
Date :
2009-10-05 08:58:47 |
By :
onizike |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 00
|