• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 604
  • Last Modified:

using php and mysql, how to store values as url decoded

follow up question for
http://www.experts-exchange.com/Database/MySQL/Q_27836893.html


well, still I would tell you that the url values should be stored in the db as url_decoded ...

anyhow, this should do, technically, except performance will be like a dog with big tables...
0
rgb192
Asked:
rgb192
2 Solutions
 
Ray PaseurCommented:
Why would you store URL values as url_encode() strings?  Why not url_encode() when there is a need for URL_encode()?  It doesn't make sense to me in a data base.
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
what I meant is that all the field in the url, decoded, are stored in distinct rows/columns.
so, using php (which is presumably used originally to store the url in the db), you could split up the url:
http://php.net/manual/en/function.urldecode.php
and store each "key=value" part of the url in a dedicate row, so you could then search of the "id" value correctly.
0
 
rgb192Author Commented:
thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now