|
Comments for: clay19990421
| Message # 1013571: |
|
Date: 09/27/02 19:13
By: Richmond Chua Subject: DB Search across different headdings Lets say there is a table that looks like this: ----------------------------------- |Mfr | Model_No | Network | ----------------------------------- |Nokia |5160 | TDMA | |Nextel |2453 | TDMA | |Motorola |V60 | CDMA | ----------------------------------- Now, the user inputs this search string ------------------ |Motorola V60 | ------------------ How would you write code so the query will return the the relevant entry in the database? with the code that i am using now, it returns nothing... My Code: (please excuse my code, im still new to programming) $result = mysql_query("SELECT * FROM Database WHERE Mfr LIKE '%$SearchValue%' OR Model_No LIKE '%$SearchValue%' OR Network LIKE '%$SearchValue%'",$db); How can i change the query so it searches all fields in one perticular row? Thanks for any help you can give. Rich |
Previous Message | Next Message |


