|
|
This is an example of how to create a basic search
database e.g. using form one enters search criteria, it
searches mySQL database, and returns nicely
formatted table output with
header line followed by rows of data -- each row in
an alternating color.
Very basic but designed for new users who want to
understand how this works. Good first project for
someone wanting to create an address book, employee
list, etc. |
|
| A PHP useradmin for MySQL. Uploading is easy. The only thing you need is
PHP and MySQL installed! Categories : MySQL, Databases, PHP, HTML and PHP | | | Paginating the mySQL data Categories : PHP, Algorithms, Databases, MySQL, HTML and PHP | | | How to Create a Shoutbox Using PHP & MySQL Categories : PHP, MySQL, Web Applications, Beginner Guides, HTML and PHP | | | Making a simple Hit-Log using PHP and MySql Categories : PHP, Log Files, Beginner Guides, Databases, MySQL | | | Newbie Notes #10 - Generating drop downs Categories : PHP, MySQL, HTML, Beginner Guides, Databases | | | Pull Down Surfing - Surf on Change Categories : Java Script, MySQL, HTML and PHP, PHP, Databases | | | Add, Edit /Update & Delete all in one Contact Management Form Categories : PHP, MySQL, Databases, Beginner Guides | | | PHP and MySQL scripting for Muyltiple CheckBoxes Categories : HTML and PHP, MySQL, Databases, PHP | | | Functions for loading images into a MySQL database and displaying them. Categories : Graphics, HTML and PHP, MySQL, PHP, Databases | | | Dynamically generated pop-ups (Select items) Categories : PHP, HTML and PHP, MySQL, Databases | | | dynamic table columns Categories : PHP, HTML and PHP, Arrays, Databases, MySQL | | | Message of the Day - Random Message (Needs MySQL!) Categories : Databases, HTML and PHP, PHP, MySQL | | | Specify your connection settings and create a link to a MySQL database. Categories : PHP, PHP Classes, Databases, MySQL, Beginner Guides | | | for each record, do this to the first record, and do that to any subsequent record Categories : PHP, Databases, MySQL, Beginner Guides | | | Required form fields that pull from MySQL database Categories : PHP, HTML and PHP, Databases, MySQL | |
| |
| | | | | James Couzens wrote : 546
dude, your file contains no example on how to make the query using a form.... all it does it spit out all the data without allowing the viewer to specify a search criteria
| | | | Eddy Peart wrote : 1300
all it takes is a little common sense to replace those quotation marks with the form information it`s really not that hard. Maybe you should read some tutorials before you try taking apart examples to study them
| | | | Mark Isherwood wrote :1696
Thanks! It was what I needed, with a little modification, of course, but I changed 3 lines of code in my code due to the info you provided, and my search works great. I DID change the search parameter to include a % BEFORE the variable as well as after to get all matches, and now I can get all songs with the word LOVE in it or search ELVIS OR PRESLEY and come up with all the records available. It`s a Karaoke Song List, check it out at http://karaoke.maryandmarthashouse.com - I`m still working on it, so don`t be too judgmental, but the search works correctly. Thanks again.
| |
|
|