Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Search by part of string

$
0
0

Hi 

 

I trying the search using the query below:

 

$result = mysql_query("SELECT * FROM certificado WHERE nome='$name'  ") or die (mysql_error());
 
 
If I look for Jose da Silva in table,it only works if I type full name. "Jose da Silva" .

How can I make the query work by typing part of search string, as "Jose da", "Jose d", etc.
 
Moises
 


 

Viewing all articles
Browse latest Browse all 13200

Trending Articles