Forum Moderators: coopster

Message Too Old, No Replies

can't save large (even less than 10K) files to mysql

works fine with small files

         

walkman

10:08 pm on May 3, 2005 (gmt 0)



I have this script that saves files like about us, disclaimer etc., but when the file is larger than a few KBs, the save button will not work at all. Than I have to edit the file via webmin (in mysql) or myphpadmin adn add the rest of the text.

What am I missing? Is it a php.ini setting?

[edited by: jatar_k at 10:22 pm (utc) on May 3, 2005]

dreamcatcher

8:09 am on May 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is the structure of your db? Which field type do you use to store the info?

anshul

11:52 am on May 4, 2005 (gmt 0)

10+ Year Member



If you are storing large texts, use data-type LONGTEXT. I'm wondering, how you've measured texts in KBs! ( 'text' is generally mesaured in characters or words ).

walkman

1:07 pm on May 4, 2005 (gmt 0)



Late last night I got the file from the programmer saying that he made a mistake, and now it works. Initally he had said to check my settings and I couldn't pinpoint it. It wasn't a mysql, just programming thing. I thought it was a php setting where I didn't allow large files.

The files were about 12-20K max.

thanks