Hi, Lulu,
I think I need more explanation of what you're trying to do. Is this functionality intended for internal use (i.e. namely, by you or someone in your organization) or for public website visitors? When you say 'website', I'm not sure if you're talking about the sql front end page, or the actual PHP page you're serving to the public.
I was thinking that you wanted to download and backup certain areas of your SQL database for archival purposes or some other application (like Excel). Is that correct? If so, I highly recommend, again, using phpMyAdmin. It has a Select screen where you can run a SQL query, for example:
"SELECT * WHERE color = 'blue'"
and it will show all the results, with a link just below the result table that says "Export" and takes you to another page with export options, such as format, what to dump, etc. You don't have to type any of the code or syntax yourself; it really couldn't be any simpler. phpMyAdmin is a single folder, it's tiny in size, and it isn't going to screw things up and you can still use your current front-end if you like it better than phpMyAdmin, without deleting or moving either one. They can coexist completely peacefully :p
Oh, and you can also go to the Search tab in phpMyAdmin and search every table in your database using SQL criteria that is very nicely put in drop-down menus for you, so you don't even have to type which fields, the search criteria, etc. It has all the operators, such as LIKE, <, =, etc. in menus.
Are we making progress yet?
-Benny