RE: [PHP] if and like together?

From: Date: Mon, 27 Oct 2003 01:16:53 +0000
Subject: RE: [PHP] if and like together?
Groups: php.general 
Request: Send a blank email to php-general+get-167662@lists.php.net to get a copy of this message
strstr() and it's variants ereg() if you need more logic Martin -----Original Message----- From: Tim Thorburn [mailto:immortal@nwconx.net] Sent: Monday, 27 October 2003 12:13 PM To: php-general@lists.php.net Subject: [PHP] if and like together? 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 'noshow-'. So I'm thinking the easiest way to handle this is if there is something similar to the MySQL 'LIKE' command in PHP ... is there such a beast? TIA -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#167662) next »