Re: Mysql like and stripslashes strangness... Help :)

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

 



Merlin,
   The search page has about 10 search fields with 2 being date related
and one comment related. I gather this input and combine this into one
string. This combined entry is then passed to the results page that
shows 25 records at a time. During this passing, I'm having to use the
$_get function on the results page. I could pass all of the variables
and then perform this, but the way I have this setup, I only have to
pass the entire combined string and just stripslashes and show the
results 25 at a time. I did find a work around with the str_replace
function. I just add a "t" to the % symbol (%t) and then remove the "t"
using the str_replace function. Works well. I may be going about this
all wrong as displaying searches should be simple enough. But I've
found that using the like function tends to cause issues with $_get and
this seems to be the easiest work around. Don't want to show a result
of 100+ records from a search. Trying to keep this at about 25 per
page. By combining the search string and just passing this instead of
10 plus fields and combining strings every pass seems to work well. If
there is a simpler way, I would love to acquire some examples? Still
relatively new to MySQL and PHP, but these to combined DB tools seem to
be only limited to my skills and programming intuitiveness... which
still needs polishing. :)


:) Gale L. Allen Jr Macintosh Support Specialist 865/947-5740

  "Remember, Love wins over all"
(:

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux