RE: Database search logic question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Stuart Felenstein [mailto:stuart4m@xxxxxxxxx]
> Sent: 15 November 2004 10:12
> To: Graham Cossey; php-general@xxxxxxxxxxxxx
> Subject: RE:  Database search logic question
>
>
> Please see inline:
> --- Graham Cossey <graham@xxxxxxxxxxxxxxx> wrote:
>
> > A couple of possibilities are:
> >
> > Store search criteria (form entries) in MySQL
> > Store query string in MySQL
>
> So with my current form, the where statement is built
> from conditions that are set (or not set) in the form.
> Perhaps I grab that one array ?

[snip]

I was thinking more along the lines of storing the SQL string.

"SELECT ... FROM vendorjobs WHERE..."

Then when recalled there is no further array processing etc to be done.
However, you may want some kind of validation to prevent malicious use of
the feature.

I've never attempted to store an array in a MySQL table. But storing the
'where' is an alternative.

Other guys (and girls) on the list probably have much more experience of
this than myself.

Graham

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux