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 :) > > if ($totalRows_rsSearch=0) > echo &

Re: [PHP] eof bof in php

2008-12-21 Thread Anthony Gentile
...missing semicolon and some brackets. Sorry no products were found"; } else { echo "Please click on a product for further information."; } ?> If there is more code you can show by perhaps pasting here: http://pastebin.redlinktech.com We can help with further syntax problems

Re: [PHP] eof bof in php

2008-12-21 Thread Anthony Gentile
". $row_rsSearch['product_subtitle'] ." "; } } ?> 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

Re: [PHP] eof bof in php

2008-12-21 Thread Anthony Gentile
err forgot the closing > in ". 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 versehentlich erhalten haben, senden Sie diese

Re: [PHP] Variable as an index

2008-12-21 Thread Anthony Gentile
e second is simply two opcodes, a concatenate and an echo. Interpolation. Anthony Gentile On Sun, Dec 21, 2008 at 5:47 PM, German Geek 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 t

Re: [PHP] Variable as an index

2008-12-21 Thread Anthony Gentile
...and often times can be more confusing to future maintainers of the code. Anthony Gentile On Sun, Dec 21, 2008 at 6:20 PM, Chris wrote: > Anthony Gentile wrote: > >> for e.g. >> $var = 'world'; >> echo "hello $var"; >> vs >> echo 'he

Re: [PHP] eof bof in php

2008-12-22 Thread Anthony Gentile
I would argue it is better practice as: than Hello World"; ?> Anthony Gentile On Mon, Dec 22, 2008 at 9:18 AM, tedd wrote: > At 1:21 PM -0500 12/21/08, Anthony Gentile wrote: > >> -snip exampe- >> >> >> is probably going to give you the result you want

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 wrote: > On Mon, 2008-12-22 at 14:21 -0500, An