Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
|
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 21st, 2007, 06:03 PM
Registered User
 
Join Date: Jan 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default multiple field filter url help

Hi Guys and Girls..

I have this code to filter results of my database:

SELECT *
FROM data
WHERE title = 'colname'
ORDER BY production ASC


this code works when I use thedata.php?search=title

but I want to be able to use multimple fields in the URL

to have a resulting url like thedata.php?search=title_production

using a _ to seperate the two fields in the url...

can this be done? I am hoping I explained this somewhat clear..

thanks
 
Old January 22nd, 2007, 12:05 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hi ddnk77872,
to send mulitipule variables you should use followong method
thedata.php?search=title&production=ASC


surendran
(Anything is Possible)
http://ssuren.spaces.msn.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Filter results by value in a gridview field cesemj ASP.NET 2.0 Basics 2 February 20th, 2008 11:39 PM
table field filter jpenn Reporting Services 1 July 11th, 2006 10:24 AM
Multiple filter on a form chimp Access VBA 0 September 9th, 2004 02:59 AM
objRS.Filter (Multiple Field Filters) egerdj Classic ASP Basics 1 March 10th, 2004 04:48 PM
Filter Report by a formulate field Tere Crystal Reports 0 December 1st, 2003 07:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.