SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 28 of 28
  1. #26
    SitePoint Member
    Join Date
    Apr 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by tom8 View Post
    Looks like back to your original problem.

    Do what Mandes has suggested and let us know what you got.
    Its all worKing but I couldn't figure out a typo in the code So I just ended up retyping the whole code again . So what is the best way to find errors in your codes?

  2. #27
    SitePoint Addict tom8's Avatar
    Join Date
    Mar 2012
    Location
    New Jersey
    Posts
    310
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I know of no easy way to find errors due to typo but at least yours was syntax or invalid function which will be reported by PHP. If the errors were in the variables it could be a painful process in locating them.

    If members know of one I would love to hear it.

  3. #28
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    73 Post(s)
    Tagged
    0 Thread(s)
    Well, the general method I use is the pseudo-breakpoint method.
    Stick echos into the code at various/key points on your development server, echoing out the variable you think is incorrect. When you hit a value you wernt expecting, you've narrowed down which lines of code to look at.
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •