base64 {en,de}code mysql

This is a discussion on base64 {en,de}code mysql within the PHP Language forums, part of the PHP Programming Forums category; Hello. I know this is comp.lang.php but I really can't find a specific mysql newsgroup. Can someone ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-08-2005
Kevin
 
Posts: n/a
Default base64 {en,de}code mysql

Hello. I know this is comp.lang.php but I really can't find a
specific mysql newsgroup. Can someone point one out?

It seems to me that mysql doesn't have a couple of functions for
encoding and decoding strings using base64 algorithm. I really
need it *in* mysql, not php or something else.

The reason why it's because I have some strings encoded in a
table which I need to sort so I'd need to decode them first and I
don't want to handle the sorting outside mysql because it will
make the job totally harder.

If there is any chance of finding a solution for that, i'd like
to hear about it if for example, there's a way to implement the
function in mysql somehow. I would even try to change the source
code of mysql, but that wouldn't be too nice because then I'd
have to impose a patch on everyone who would like to run the
system... :\

Thanks for any information.
Reply With Quote
  #2 (permalink)  
Old 02-08-2005
Philip Ronan
 
Posts: n/a
Default Re: base64 {en,de}code mysql

Kevin wrote:

> Hello. I know this is comp.lang.php but I really can't find a
> specific mysql newsgroup. Can someone point one out?
>
> It seems to me that mysql doesn't have a couple of functions for
> encoding and decoding strings using base64 algorithm. I really
> need it *in* mysql, not php or something else.


Did you consider *not* storing these strings in base64 encoded form? I think
that's your easiest solution to the problem.

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/


Reply With Quote
  #3 (permalink)  
Old 02-09-2005
Chung Leong
 
Posts: n/a
Default Re: base64 {en,de}code mysql

"Philip Ronan" <invalid@invalid.invalid> wrote in message
news:BE2EF24E.2A93A%invalid@invalid.invalid...
> Kevin wrote:
>
> > Hello. I know this is comp.lang.php but I really can't find a
> > specific mysql newsgroup. Can someone point one out?
> >
> > It seems to me that mysql doesn't have a couple of functions for
> > encoding and decoding strings using base64 algorithm. I really
> > need it *in* mysql, not php or something else.

>
> Did you consider *not* storing these strings in base64 encoded form? I

think
> that's your easiest solution to the problem.
>
> --
> phil [dot] ronan @ virgin [dot] net
> http://vzone.virgin.net/phil.ronan/
>


I once worked with a guy who urlencode (!) all strings going into the
database. It was his way of handling strings with quotation marks :-p


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:32 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0