View Single Post
Old 03-11-2011, 11:04 PM   PM User | #6
oesxyl
Master Coder


 
Join Date: Dec 2007
Posts: 6,682
Thanks: 436
Thanked 890 Times in 879 Posts
oesxyl is a jewel in the roughoesxyl is a jewel in the roughoesxyl is a jewel in the rough
Quote:
Originally Posted by KaliK View Post
oesxyl,

That works! Wonderful! I'm not sure how the periods and semicolons work in the php. I would like to learn the process so that I can use it elsewhere later...

It seems you closed out the html with single quotes and used the period to append the php and then reversed the process to append the html. Am I right?

This is great, Thank you sooooo much!!
any string can be delimited by ' or by " the difference is how variables, if exists in the string, are evaluated to build the resulting string.
I don't think there are rules when you need to use one or anothers, i usualy use ' as delimiter because i always use " in html. Also i prefere to not use variables inside a string( split the string in pieces arround variables and concatenate).
in this specific case i tried to avoid to use <?php and ?> and to make if tests simpler by using ternary operator ?:.

best regards
oesxyl is offline   Reply With Quote
Users who have thanked oesxyl for this post:
KaliK (03-28-2011)