check string contens

From: Date: Tue, 27 Jun 2000 15:49:56 +0000
Subject: check string contens
Groups: php.db 
Request: Send a blank email to php-db+get-664@lists.php.net to get a copy of this message
What am i dooing wrong. I want to check for the string http:// in a datafield and if it is there do nothing and if it is not there add it. $mask="http://"; $test=strtolower(trim(substr($webpage,0,7))); $binchk=strcmp($webpage,$mask); if ($binchk<=1){ $webpage=$mask.$webpage; } # ** end Thanks ...

« previous php.db (#664) next »