php error display help please

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mr. Mike
    Confirmed User
    • Aug 2004
    • 913

    #1

    php error display help please

    What line do I need to type to display the specific error on the page? I know Im just missing a quote or comma somewhere but I cant find it.

    Thanks for any help.
    Sig for sale. ICQ: 163-545-054
  • Doc911
    Confirmed User
    • Feb 2004
    • 3695

    #2
    when you run the script the server will display the error and the line the error occurs on. simply go to that line in your file and fix the problem.

    remember to look before the line as the mistake could be above the actual line number


    For PHP/MySQL scripts ICQ 161480555 or email [email protected]

    Comment

    • Mr. Mike
      Confirmed User
      • Aug 2004
      • 913

      #3
      Originally posted by Doc911
      when you run the script the server will display the error and the line the error occurs on. simply go to that line in your file and fix the problem.

      remember to look before the line as the mistake could be above the actual line number
      Yes, but there is a code you can enter that will tell you exactly what you're missing and where. The standard error just tells you the type and line its at.
      Sig for sale. ICQ: 163-545-054

      Comment

      • natkejs
        Confirmed User
        • Jan 2003
        • 1640

        #4
        I've never heard of such a code.

        Read the PHP manual about error messages and you'll be fine.
        Since it gives you the line # it's really not that hard to figure out... good practising

        Comment

        • Mr. Mike
          Confirmed User
          • Aug 2004
          • 913

          #5
          ugh, its a little more complicated than just looking at the line, too long to explain..

          anyone know this or what? Its like echo lineError or some shit
          Sig for sale. ICQ: 163-545-054

          Comment

          • natkejs
            Confirmed User
            • Jan 2003
            • 1640

            #6
            try putting this in the beginning of your file...



            error_reporting(E_ALL);

            Comment

            Working...