Calgaryalberta Posted February 9, 2008 Share Posted February 9, 2008 Hello, Im developing a script and this is my first attempt at trying something like this. I have two fields (Text boxes) that users can type 3 letter codes in. The three letter codes represent airports. One text box is for departures, the other is for arrivals. When a user types in these three letter codes into each box, and hits 'search' I want the script to search for any flights that match the 3 letter codes of what the user typed, if no records are found, then the form will just return a "No Records Found For That Search" Now Im wondering if anyone could recommend any real good tutorials for developing a search function to do that? Thanks, Link to comment https://forums.phpfreaks.com/topic/90252-searching-for-data/ Share on other sites More sharing options...
revraz Posted February 9, 2008 Share Posted February 9, 2008 Assuming you are using a MySQL DB, use the WHERE LIKE function in your SELECT query. Link to comment https://forums.phpfreaks.com/topic/90252-searching-for-data/#findComment-462712 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.