Thursday, January 23, 2014

Notice: Undefined index: select_language in D:\wamp\www\vdo\index.php on line 24

Notice: Undefined index: module in C:\wamp\www\test\user-profile.php on line 138


Code (PHP)

1.switch ($_GET["module"]) {
2.case "welcome":
3.include("user/page_welcome.php");
4.break;
5.default:
6.include("user/page_welcome.php");
7.break;


มันerror $_GET["module"] เพราะเปิดตอนแรกมันยังไม่มีค่า ต้องแก้ไขยังไงครับใช้กับ Apperv ไม่มีปัญญาแต่ลองมาใช้ Xamp หรือ Wamp errer เหมือนกันเลย ต้องแก้ไข code ใหม่ยังไงครับ

อีกอย่างเมื่อก่อนใช้

Code (PHP)
1.if($_POST['submit']){
2.////do somthing
3.} ได้เลย แต่ตอนนี้มัน Error  แต่ต้องมาแก้เป็น
4. 
5.if(isset($_POST['submit']){
6.////do ///
7.}
-------------------------------------
ตอบ

รู้แหละเปลี่ยนจาก error_reporting = E_ALL ใน php.ini

มาเป็น

Code (PHP)
1.error_reporting = E_ALL ^ E_NOTICE


*** Rekmark

You can also turn off error reporting in your php.ini file or .htaccess file, but it is not considered as a wise move if you are still in the testing stage.

No comments:

Post a Comment