|
 |
|
สอบเรื่อง Error ครับผม ในคือ คำฟ้องครับ syntax error, unexpected T_CONSTANT_ENCAPSED_STRING ไม่รู้ว่ามันคืออะไรครับ |
|
 |
|
|
 |
 |
|
รบกวนพี่ๆที่เก่งๆ แนะนำผมด้วยนะครับผม ขอบคุณครับ
|
 |
 |
 |
 |
Date :
2009-08-26 22:49:52 |
By :
popnakub |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
$strTxt = ($Total+1).":"."$NameTxt".":"."$PhoneTxt\n";
มันจะมองเป็น 1. เลย error ครับ ถ้าไม่ใส่วงเล็บก็ เว้นวรรค 1 ครั้งนะครับ
หรือจะเขียนแบบผมก็ได้นะครับผมนิยมแยกตัวแปรออกจาก string
$strTxt = ($Total+1).":".$NameTxt.":".$PhoneTxt."\n";
|
 |
 |
 |
 |
Date :
2009-08-26 23:41:05 |
By :
DownsTream |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณครับแก้ไขได้แล้วครับ
|
 |
 |
 |
 |
Date :
2009-08-27 10:57:09 |
By :
popnakub |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอถามเพิ่มเติมอีกนิดหน่อย นะ ครับคือพอเมื่อผมเพิ่มชื่อและหมายเลขเข้าไปแล้ว พอผมกดที่ปุ่ม Deleteแล้วมันขึ้นว่า
Warning: fclose(): supplied argument is not a valid stream resource in C:\AppServ\www\phonebook\phonebook.php on line 19
ผมลองใน googleแล้วเค้าบอกว่าผมสั่งผิดไฟล์แล้ว แต่ในไฟล์นั้นไม่มีอะไร ผมก็เลย งง ครับคือ
ผมใช้ตัวแปล $fs = "data.txt"แล้วพอสั่งปิดก็ปิดด้วย fclose=$fs ทำไม มัน ฟ้อง Error ครับ งงมากมาย รบกวนพี่ๆผู้รู้อีกสักนิดนะครับ
ปล.ขอบคุณครับ
|
 |
 |
 |
 |
Date :
2009-08-27 11:51:58 |
By :
popnakub |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 03
|