DeluXe Network Forums
March 13, 2010, 12:43:17 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Please do not add ads in your signature!
 
   Home   Help Search Members Login Register  
Pages: [1]
  Print  
Author Topic: some php questions  (Read 714 times)
susapra
Newbie
*

Honor: 0
Offline Offline

Sri Lanka Sri Lanka

Posts: 3


View Profile
« on: October 26, 2008, 06:14:46 am »

okay, in the past week i bought a book about php and mysql (php and mysql for dummies),

and it explains how to check information.

but it only tell's me how to don't accept full words. but what i want to know is how to check for parts of words.

for example: the word is: pineapple
the book tells me how to look for the whole word: pineapple.
but i want to be able to scearch for only the part: pine or apple.

can someone tell me how to do that?
Logged
Endrju
Global Moderator
Hero Member
*****

Honor: 4
Offline Offline

Poland Poland

Posts: 2466



View Profile WWW
« Reply #1 on: December 06, 2008, 01:42:31 pm »

http://pl2.php.net/manual/en/function.strpos.php
http://pl2.php.net/manual/en/function.stripos.php

And something more advanced:
http://pl2.php.net/manual/en/function.preg-match.php
Logged

Straight Edge till death.
Pages: [1]
  Print  
 
Jump to:  

 

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.043 seconds with 15 queries.