
You could use ''; aswell but ""; is the proper solution. Naresh's usersystem was badly coded as you said but it set the tone for a few PHP coders today![]()
I just said ''; and "";, you don't need to tell me what are the "proper solutions", I believe I know a tad bit more then you![]()
And I believe I know a "tad bit" more than you, no need to boast now, and using either ("") / ('') or '' / "" is correct, it's just what you use for your coding style, i don't use () on return ''; but I use it on echo(); It's just a personal choice, there are no rights or wrongs here.
visit my internet web site on the internet
http://dong.engineer/
it is just videos by bill wurtz videos you have been warned
Sorry, but to have a client, and code like that, even without testing, is impossible... unless your client is seriously mentally impaired.Read what I said above, my coding is not clean when I'm doing it for myself, client coding is clean and uses proper terms and syntax. Secondly I don't have access to my servers at the moment so I can't test out the outcome can I?
Yeah, I knew the proper way, just thought there may be another wayHaha, (" ") is a bad bad habit I'm sure a lot of coders share
Oh, and I've said this a million times, using parenthesis on language constructs DOES slow the script down.
Also a quick clarification for a lot of people who don't seem to understand the difference between '' and "", the MAIN difference (not the only) is that using double quotes you can have variables inside it.
Example
PHP Code:echo "$hello"; //works
echo '$hello'; // doesnt work
echo "hello"; //works
echo 'hello'; // also works and is a lot faster
Last edited by Hypertext; 29-08-2008 at 03:49 AM.
How could this hapen to meeeeeeeeeeeeeee?lol.
I use
echo( 'Pls ***' );
cuz its me personal choice yo yo & looks well sxi lyk mr sxi bear xoxox
Hi, names James. I am a web developer.
*Removed*. "Blah" and 'Blah' are the proper ways, I just asked the other developers @ work - they have qualifications in most languages and I'm sure they would know the best way... ('') works, but it looks naff.And I believe I know a "tad bit" more than you, no need to boast now, and using either ("") / ('') or '' / "" is correct, it's just what you use for your coding style, i don't use () on return ''; but I use it on echo(); It's just a personal choice, there are no rights or wrongs here.
Anyhoo, just do a while statement with an echo in it.... rather than the while in an echo as that is just not possible..
Edited by ,Jess, (Forum Super Moderator): Please do not be rude towards other forum members.
Last edited by ,Jess,; 29-08-2008 at 01:16 PM.
So you're flaming me for saying exactly what they said before you asked them?
Well done.
visit my internet web site on the internet
http://dong.engineer/
it is just videos by bill wurtz videos you have been warned
Can you take a photo of them?You are the biggest **** on this forum, end of story. "Blah" and 'Blah' are the proper ways, I just asked the other developers @ work - they have qualifications in most languages and I'm sure they would know the best way... ('') works, but it looks naff.
Anyhoo, just do a while statement with an echo in it.... rather than the while in an echo as that is just not possible..
Want to hide these adverts? Register an account for free!