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 &
...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
". $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
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
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
...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
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
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
8 matches
Mail list logo