Re: [PHP] if and like together?

2003-10-26 Thread Leif K-Brooks
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

RE: [PHP] if and like together?

2003-10-26 Thread Martin Towell
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

[PHP] if and like together?

2003-10-26 Thread Tim Thorburn
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

Re: [PHP] if and...

2003-06-30 Thread Lars Torben Wilson
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

Re: [PHP] if and...

2003-06-30 Thread Ray Hunter
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"

[PHP] if and...

2003-06-30 Thread Steve Marquez
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]