|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Can anybody tell me how i use the select function with LIKE?
I tried: $result = mysql_db_query("database","select * from table where title='%$search%' or text='%search%'"); Where title is a char (80) and text is a text Thanx! |
|
#2
|
|||
|
|||
|
The query should read:
select * from table where title LIKE '%$search%' or text LIKE '%$search%' |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > Mysql-Select and LIKE |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|