Re: [PHP] eof bof in php

2008-12-22 Thread Anthony Gentile
I would argue it is better practice as: h1?php echo 'Hello World'; ?/h1 than ?php echo h1Hello World/h1; ? Anthony Gentile On Mon, Dec 22, 2008 at 9:18 AM, tedd tedd.sperl...@gmail.com wrote: At 1:21 PM -0500 12/21/08, Anthony Gentile wrote: -snip exampe- is probably going to give you

Re: [PHP] eof bof in php

2008-12-22 Thread Anthony Gentile
dealing with the presentation...I personally don't think its a problem. However when you start writing html out with php in your business logic...to me that's a no no. Anthony Gentile On Mon, Dec 22, 2008 at 2:47 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Mon, 2008-12-22 at 14:21

Re: [PHP] eof bof in php

2008-12-21 Thread Anthony Gentile
if (0 == $totalRows_rsSearch) { echo Sorry no products were found; } else Anthony Gentile On Sun, Dec 21, 2008 at 11:22 AM, Gary Maddock-Greene g...@maddock-greene.co.uk wrote: I have tried that but to no avail :) ?php if ($totalRows_rsSearch=0) echo Sorry no products were found; else

Re: [PHP] eof bof in php

2008-12-21 Thread Anthony Gentile
with further syntax problems. Anthony Gentile On Sun, Dec 21, 2008 at 12:33 PM, Gary Maddock-Greene g...@maddock-greene.co.uk wrote: Thanks guys .. I can get this part working great .. ?php if (0 == $totalRows_rsSearch) { echo h3Sorry no products were found/h3; } else echo h3Please

Re: [PHP] eof bof in php

2008-12-21 Thread Anthony Gentile
/div; } } ? is probably going to give you the result you want. However you should know it is bad practice to mix PHP and HTML as horridly as I just showed you. AKA you don't want your PHP writing your HTML. Anthony Gentile On Sun, Dec 21, 2008 at 1:07 PM, Gary Maddock-Greene g...@maddock

Re: [PHP] eof bof in php

2008-12-21 Thread Anthony Gentile
err forgot the closing in img src=\products\. should look like img src=\products\. Anthony Gentile Cell: 704.657.8550 Diese E-Mail ist vertraulich. Wenn Sie nicht der rechtmaessige Empfaenger sind, duerfen Sie den Inhalt weder kopieren noch verbreiten oder benutzen. Sollten Sie diese E-Mail

Re: [PHP] Variable as an index

2008-12-21 Thread Anthony Gentile
, a concatenate and an echo. Interpolation. Anthony Gentile On Sun, Dec 21, 2008 at 5:47 PM, German Geek geek...@gmail.com wrote: OK. I would think it uses more memory then, but doubt it would be slower. Isnt the output buffered in memory anyway though in PHP? Surely the buffer is bigger than

Re: [PHP] Variable as an index

2008-12-21 Thread Anthony Gentile
confusing to future maintainers of the code. Anthony Gentile On Sun, Dec 21, 2008 at 6:20 PM, Chris dmag...@gmail.com wrote: Anthony Gentile wrote: for e.g. $var = 'world'; echo hello $var; vs echo 'hello '.$var; The first uses twice as many opcodes as compared to the second. The first