Tim Thorburn wrote:
Is there an IF LIKE statement in PHP? I've got a MySQL database setup
with headings and text (think a news article site) - headings in one
field, text in another. In some cases, I don't want the contents of
the heading field to appear on the site - in these cases, the head
strstr() and it's variants
ereg() if you need more logic
Martin
-Original Message-
From: Tim Thorburn [mailto:[EMAIL PROTECTED]
Sent: Monday, 27 October 2003 12:13 PM
To: [EMAIL PROTECTED]
Subject: [PHP] if and like together?
Hi,
Is there an IF LIKE statement in PHP? I
Hi,
Is there an IF LIKE statement in PHP? I've got a MySQL database setup with
headings and text (think a news article site) - headings in one field, text
in another. In some cases, I don't want the contents of the heading field
to appear on the site - in these cases, the headings begin with
On Mon, 2003-06-30 at 18:09, Steve Marquez wrote:
> I am trying to get php to use two conditions.
>
>
> if ($biz = my_business and $id_num = "1"){
>
> echo "stuff"
>
> }
>
> if ($biz = "my_business" and $id_num ="2"){
>
> echo "other stuff"
>
> }
>
> ?>
>
> My question Is, I am n
if( $biz == "my_business" && $id_num == 1 ) {
echo "stuff...";
}
if $biz is a string and $id_num is an int...
--
BigDog
On Mon, 2003-06-30 at 19:09, Steve Marquez wrote:
> I am trying to get php to use two conditions.
>
>
> if ($biz = my_business and $id_num = "1"){
>
> echo "stuff"
I am trying to get php to use two conditions.
My question Is, I am not sure if the "and" is correct, it does not work. Is
there another way to do this? I have tried a plus (+), a (,) and nothing
seems to work.
Could someone please help?
Thanks!
Steve Marquez
Marquez Design
[EMAIL PROTECTED]
6 matches
Mail list logo