dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: PHP-mySQL: Long Text Field cutoff on read

  1. #1
    Join Date
    Apr 2003
    Posts
    12

    PHP-mySQL: Long Text Field cutoff on read

    Hello,

    I'm developing a CMS, and when a particularly long entry is in a TEXT field, I'm getting the value cutoff when reading it back.

    When investigating the query, the query is fine, so its inserting/updating fine. The problem is the read.

    I've tried resolving this with updating the max_allowed_packet value in my.cnf, but this hasn't helped.

    Any advice? Thanks!

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    21,426
    We might need to see the relevant code.
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  3. #3
    Join Date
    Apr 2003
    Posts
    12
    I managed to resolve this - I changed the mySql field type from "Text" to "Longtext".

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles