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
    19,614
    We might need to see the relevant code.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  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