Re: Errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



olsofty wrote:
> I am very new to PHP been working on a script to access MySql have got it
> down pretty good, but, being lazy I like to copy code to not have to
> re-write it, I am now getting a constant flood of errors. I have looked in
> my book I have searched on the php site and have had no luck.
> WHAT IN THE HECK IS A "T_" error. I get "T_Else", T_Variable, T_what ever.
> What does it mean????
> Very frustrated old man.

That's Geek for "you typed something so wrong, I don't even know what
you're trying to do"

Generally the line number is helpful.

You know it is usually on that line, or the line before.

But sometimes it's before that, maybe *WAY* before that, if the real
problem is you are missing a quote mark somewhere.

For sure, the problem CANNOT be *after* the line number PHP is complaining
about.  It reads the file line by line, and works out what you mean as it
goes.

You should probably invest time/money in finding a color-coded PHP syntax
editor.  There are sooooo many of them, I won't even try to recommend one.

Odds are good the editor you use right now has a PHP syntax color-coding
plugin or feature, and you just haven't turned it "on" yet.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux