Equivilent To SQL's LIKE

I want to perform an IF statement that says basically "if department is equal to PHS or description contains the words 'phone card' then do some stuff".

The dept=PHS bit I've got but I was stuck over how to code the 'description contains' bit. In SQL I would use "LIKE '%phone card%' " so I am looking for however ASP handles that kind of statement please. when I tried a search of the forum but 'like' and 'contains' are too common so it doesn't include them in any search performed.

View Replies


ADVERTISEMENT

Whats Asp's Equivilent To PHP's 'extends'?

I want to be able to do the following, but im not sure how in asp.

<?php
class Cart {
var $items;

some functions.
}
?>

<?php
class Named_Cart extends Cart {
var $owner;

}
?>

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved