List:MySQL on Win32« Previous MessageNext Message »
From:Danny Willis Date:December 15 2004 2:35am
Subject:RE: Help with using Text and Blob types
View as plain text  
Ok,

Is this all I need to do to store the data.  What about reading it back out
of the database?

-----Original Message-----
From: Randy Clamons [mailto:randy@stripped] 
Sent: Wednesday, December 08, 2004 5:48 PM
To: Danny Willis; win32@stripped
Subject: RE: Help with using Text and Blob types

Danny, 

If you are storing text, make the column type text--depending on how much
data you are storing, you may prefer tinytext, text, mediumtext or longtext.
Then you just need to mysql_escape_string() before saving to db.

Reference for mysql_escape_string():
http://us2.php.net/manual/en/function.mysql-escape-string.php

Randy Clamons
Systems Programming
Astro-auction.com


> ------------Original Message------------
> From: "Danny Willis" <danny.willis@stripped>
> To: "'James Frankman'" <jfrankman@stripped>, win32@stripped
> Date: Wed, Dec-8-2004 3:36 PM
> Subject: RE: Help with using Text and Blob types
>
> 
> I'm using php, not asp/vb.
> 
> 
> -----Original Message-----
> From: James Frankman [mailto:jfrankman@stripped] 
> Sent: Wednesday, December 08, 2004 5:34 PM
> To: Danny Willis
> Subject: RE: Help with using Text and Blob types
> 
> Assuming you are using vb or asp, this article help me out:
> http://dev.mysql.com/tech-resources/articles/vb-blob-handling.html
> 
> -----Original Message-----
> From: Danny Willis [mailto:danny.willis@stripped]
> Sent: Wednesday, December 08, 2004 3:26 PM
> To: win32@stripped
> Subject: Help with using Text and Blob types
> 
> 
> I have a site with a form that takes in a message.  At the moment I 
> have it
> set as a VARCHAR but it isn't large enough.  What's the trick to 
> changing
> the type to a Text Type of Blob type and working with it?  I've read 
> the
> documentation but I still really don't understand what I need to change 
> in
> my queries to work with these types.
> 
> This is a priority so any help is greatly appreciated.
> 
> Thanks.
> 
> 


Thread
Steps to importing table data.John Fitzsimons21 Nov
  • Re: Steps to importing table data.Daniel da Veiga21 Nov
    • Re: Steps to importing table data.John Fitzsimons21 Nov
      • RE: Steps to importing table data.Patrick Questembert21 Nov
        • Re: Steps to importing table data.John Fitzsimons21 Nov
          • Re: Steps to importing table data.Daniel da Veiga22 Nov
            • Re: Steps to importing table data.John Fitzsimons5 Dec
              • Re: Steps to importing table data.John Fitzsimons5 Dec
      • Re: Steps to importing table data.Graeme St.Clair6 Dec
Re: Steps to importing table data.Fred Friedman8 Dec
  • Help with using Text and Blob typesDanny Willis8 Dec
RE: Help with using Text and Blob typesDanny Willis8 Dec
  • RE: Help with using Text and Blob typesRandy Clamons8 Dec
    • RE: Help with using Text and Blob typesDanny Willis15 Dec
      • RE: Help with using Text and Blob typesRandy Clamons15 Dec
        • RE: Help with using Text and Blob typesDanny Willis15 Dec