What does the PHP error message “Notice: Use of undefined constant” mean?

前端 未结 9 2179
悲&欢浪女
悲&欢浪女 2020-11-21 05:04

PHP is writing this error in the logs: \"Notice: Use of undefined constant\".

Error in logs:

PHP Notice:  Use of undefined constant          


        
9条回答
  •  礼貌的吻别
    2020-11-21 06:07

    Am not sure if there is any difference am using code igniter and i use "" for the names and it works great.

    $department = mysql_real_escape_string($_POST["department"]);
    $name = mysql_real_escape_string($_POST["name"]);
    $email = mysql_real_escape_string($_POST["email"]);
    $message = mysql_real_escape_string($_POST["message"]);
    

    regards,

    Jorge.

提交回复
热议问题