Thanks all, I appreciate the follow ups and the help with the code. I'm
still relatively new with this stuff, and never had any formal training,
it's all just been learn as I go, and I have to learn fast as this project
is relatively urgent to get completed. I plan on going through all of my
code on all of these pages and cleaning it up at the end to make it more
efficient, so I will use these tips to help do that.
Thanks again to all who helped troubleshoot this. It is working great now
and I think my bosses will be happy. =D
"Nathan Rixham" <nrixham@xxxxxxxxx> wrote in message
news:85.6C.02935.3E291D84@xxxxxxxxxxxxxxx
learn something new every day! cheers Micah :)
Micah Gersten wrote:
While it's true that '.' concatenates and ',' is a list separator, The
comma is actually more appropriate in this instance since you are just
outputting each piece. It saves the overhead of concatenation before
output.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Nathan Rixham wrote:
6: " vs '
when you use " php will parse the enclosed string for variables, when
you use ' it won't; so ' leads for faster code, and also encourages
you to code strongly by closing strings and concatenating variables.
Further it allows you to use valid html " around attributes rather
than the invalid '
7: , vs .
there is no vs :) to concatenate we use . (period) not , (comma)
so for 6 & 7..
echo '<td>' . $i['servername'] . '</td>';
I'm going to stop there, hope it helps a little bit; and I won't go
any further as half the fun is learning; so you finding out how to
save time on queries and write your own db handlers etc is not my
domain I reckons
Regards
nathan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php