See the . (dot) as a + (plus) for example.
So you don't go in maths 10+5+
See the . (dot) as a + (plus) for example.
So you don't go in maths 10+5+
Hi, names James. I am a web developer.
My version is messier? How so? All I did was take out his ( )'s on the language constructs, as they don't need them. And took out useless concatenations. Calon, I meant what Invent! said, don't get snappy with me.
Ooh Protege, after reading your second response, it's even funnier.
Please tell me your not serious. Why on earth would you clarify a boolean value against something that automatically returns a boolean value.PHP Code:while( FALSE === ( $mysqlFetch = mysql_fetch_array( $mysqlQuery ) ) )
In your query why would you check if the number of rows is SMALLER THAN or equal to 0, how would it be smaller than zero?
SELECT * FROM `database`
I won't be picky about that seeing as it would work, but seeing as you wrote 'database' it should be SELECT * FROM database.`table`
Why wouldn't you just put in an or die(mysql_error()) after your mysql_query, that way you can have some informative information upon error.
And your still using parentheses in your language constructs, which is bad practice.
I'll get flamed for this but whatever.
Last edited by Hypertext; 05-08-2008 at 12:57 AM.
How could this hapen to meeeeeeeeeeeeeee?lol.
His coding is a lot more fluent and clean. He has used whitespace properly which makes his coding easy to read and understand. (Which will help immensly if debugging is needed).My version is messier? How so?
Thats how and why I think your code is messier.
Well I appreciate your comments but this was a quick script for someone I do part-time work for, there wasn't really any need to make all the coding clean and use or die statements as I knew this couldn't have been a connection error due to the order being processed but not displayed. In the end I just deleted my whole database, created a fresh one and gave it new names. Seems the database got locked up when I originally deleted the whole lot of information - shouldn't have used a while statement on 1 order I guess, just fetch the array. All part of the learning curve I guess!My version is messier? How so? All I did was take out his ( )'s on the language constructs, as they don't need them. And took out useless concatenations. Calon, I meant what Invent! said, don't get snappy with me.
Ooh Protege, after reading your second response, it's even funnier.
Please tell me your not serious. Why on earth would you clarify a boolean value against something that automatically returns a boolean value.PHP Code:while( FALSE === ( $mysqlFetch = mysql_fetch_array( $mysqlQuery ) ) )
In your query why would you check if the number of rows is SMALLER THAN or equal to 0, how would it be smaller than zero?
SELECT * FROM `database`
I won't be picky about that seeing as it would work, but seeing as you wrote 'database' it should be SELECT * FROM database.`table`
Why wouldn't you just put in an or die(mysql_error()) after your mysql_query, that way you can have some informative information upon error.
And your still using parentheses in your language constructs, which is bad practice.
I'll get flamed for this but whatever.
I wasn't getting snappy, I was worrying if you would get your imaginary paycheck from IN VALID SOFTWARE, INC.
Sorry for caring.
Oh stop being a ******* jealous pisshead mother****** as your like is just one big epic fail.
As soon as I prove your coding to be **** as, you make up some garble of a retort.
Invent!, my IDE was habbox forum quick-reply, you can't expect much in the way of whitespace. Also removing all whitespace and taking away parenthesis in his language constructs would still be cleaner code than his.
How could this hapen to meeeeeeeeeeeeeee?lol.
Not really, I can read my code and code in that form much easier than yours, you put curley brackets on the same line as the statement, what for to make it even harder to read? They're on new lines so you can easily align start/end of each statement/function... so don't think you 'removing whitespaces' will in anyway will make it cleaner, cause really it won't.
Also for your little thing parenthesis on echos, dude your losing the battle to get your point across cause really = fails.
Result:PHP Code:( $hText = 'noob' ) ? echo( 'true' ) : echo( 'false );
I could be compressing my PHP in my real version to 'save space', dude at this point I'd insult you.true
Last edited by Protege; 05-08-2008 at 05:03 AM.
Hi, names James. I am a web developer.
LOL CALM DOWN!Oh stop being a ******* jealous pisshead mother****** as your like is just one big epic fail.
As soon as I prove your coding to be **** as, you make up some garble of a retort.
Invent!, my IDE was habbox forum quick-reply, you can't expect much in the way of whitespace. Also removing all whitespace and taking away parenthesis in his language constructs would still be cleaner code than his.
I am new to coding.
epic fail, thats right when used against yourself. He's like Klydo, loolage - must be fegbrothers
Hi, names James. I am a web developer.
Want to hide these adverts? Register an account for free!