PHP error message explanation

Source: Internet
Author: User
Tags php error

Introduction: This is a detailed page for PHP error message explanation. It introduces the related knowledge, skills, experience, and some PHP source code for PHP error message explanation.

Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 360993 'rolling = 'no'>
When I was learning PHP, I often encountered various error prompts. Today I am very familiar with the error prompts and explanations. Now I want to learn from them. Haha .....

1. Notice: undefined variable: variable name in

Note: An unspecified variable is used.

2. parse error: syntax error, unexpected t_else in

If (){

} Else if (){

}

Echo $ test;

Else {

}

Note: The if else sentence is incorrect.

3. parse error: syntax error, unexpected $ end in D

Note: Generally, braces do not match.

4. parse error: syntax error, unexpected t_string in

Note: Generally, you forget to write a semicolon at the end of a sentence.

5. Warning: invalid argument supplied for foreach () in

Note: The first parameter of foreach must be an array.

6. Warning: mysql_fetch_assoc (): supplied argument is not a valid MySQL result resource in

Note: This indicates that the preceding SQL statement failed to be returned. It may be an SQL statement error. If the analysis fails, you can print the mysql_error (). Check the specific error.

7. No Database Selected

Note: Generally, the database is not connected.

8. Warning: mysql_connect () [function. mysql-connect]: Access denied for user 'root' @ 'localhost' (using password: Yes) in ..... On line 3

Access denied for user 'root' @ 'localhost' (using password: Yes)

Note: The database username and password are incorrect.

9. Unknown database 'cms01_1 ′

Note: This database does not exist.

10. Table 'cms0726. test' doesn' t exist

Note: The table does not exist.

11. Unknown column 'abc' in 'field list'

Note: The field does not exist.

12. column count doesn't match value count at Row 1

Note: The number of Field Values in SQL statements is different from that of field names.

13. Warning: Wrong parameter count for function name in

Note: The number of function logarithm is less.

14. Fatal error: smarty error: [In message_list.html line 22]: syntax error: 'foreach: item' must be a variable name (literal string)

Note: if you look at the row number, it means that the item after foreach must be followed by a variable name without adding $. It is a string (Note: There is no single-double quotation)

15. Fatal error: smarty error: [In message_list.html line 24]: syntax error: Unrecognized Tag: msg. message_id

Note: $ is missing before the variable in the template

16,

Warning: smarty error: unable to read resource: cannot message_list1.html "in

Note: The template file cannot be found. Check whether the file name is incorrect or the file is stored in another directory.

17. Fatal error: cannot redeclare get_sort1 () (previusly declared in

Note: The function has been defined and cannot be redefined.

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/360993.html pageno: 1.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.