|
 |
|
PHP, MySQL ช่วยดูให้หน่อยครับ ผมจะแสดงข้อมูลเพศจากตัวแปรไม่ได้ |
|
 |
|
|
 |
 |
|
ดูภาพรวมก็น่าจะถูกต้องแล้วนะครับ
แต่
Code (PHP)
if ($objResult["sex"]==”0”) {
echo “เพศหญิง”;
} else if ($objResult["sex"]==”1”) {
echo “เพศชาย”;
}
ทำไมของคุณใช้ “ ” ซึ่งทำไมไม่ใช้ " "
ผมว่าน่าจะเป็นที่ตรงนี้ ซึ่งสองแบบนี้จะให้ผลที่ไม่เหมือนกันครับ
|
ประวัติการแก้ไข 2012-02-02 13:29:38 2012-02-02 13:30:01
 |
 |
 |
 |
Date :
2012-02-02 13:28:03 |
By :
50121680 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ได้แล้วครับ ขอบคุณครับ หาตั้งนาน ที่แท้ก็ Dluble Qoute
|
 |
 |
 |
 |
Date :
2012-02-02 14:52:18 |
By :
SUKON |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|