$csv = $_POST['csv']; mysql_query("INSERT INTO csv (unicode, content) VALUES ('$unicode', '$csv')"); 

content is a TEXT entry. csv keeps csv content in itself, so there are signs in it ", I think it’s just because of them there is a problem with the record. after the query is executed, the value is content == NULL

Since it is the same to write the csv content in the TEXT record

    1 answer 1

    You're right. You should read about screening .

    • addCslashes ($ _ POST ['csv'], '"'); Didn't save, any more ideas? - Awesome
    • @Awesome, there is another idea - do not immediately push the line into the request, but display on the screen and see what happens there after all. Better yet, the entire request. In general, I just noticed - use addslashes instead of addcslashes. The second shields all special characters, not the list - stck
    • addslashes is the same if showing echo, shows lines of such a plan: \ "\"; \ "\"; \ "\" csv is generated using jQuery table2CSV - Awesome
    • @Awesome print the request here, or write more - stck