- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
7 Posted Topics
Re: Quick guess: If the code works for images you maybe having a timeout problem due to the size of the videofiles, OR the filesize is larger than the allowed filesize. Check the errorcode from $_FILES["file"]["error"]. The value 1 means the file is larger than the allowed filesize (from php.ini). Greetings … ![]() | |
Re: PHP has built in functions to handle this case. They are called fgetcsv and fputcsv. You can read the textfile into an array using fgetcsv and write the changed values back using fputcsv. These functions handles both the field delimiter (comma or semi-colon), string enclosures (the " or ') and … ![]() | |
Re: You can not update a sum of values with a single update statement. The database has no way of knowing which rows to change in your statement. Also you do not use "AND" but a "," when updating different columns: ` AND sum(total)='$parts[2]'` So the above code needs to be … | |
Re: Hi After checking that the values were saved to the database use the following: `$("form").each( function() { this.reset; });` This resets all forms on the page. You can wrap the function in a button (with an id of "reset" in this sample): $("#reset").on("click", function() { $("form").each( function() { this.reset; }); … | |
Re: Hi. I'm writing because I have noticed that your question haven't had a single answer in 2 weeks. That is very unusual, and I've looked at your questions and your code sample to see if I could help you. Well, I can't. Not now anyway. But at least I may … | |
Re: Hi The good (or bad...) news is that your code works like a charm. I've created a table and tested it on a mysql database - no problem. You may have an access problem, when connecting to the database. Try checking the line where you create the `$db` variable. Make … | |
Re: Hi You are splitting your headerlines where it is not allowed: > ."Content-Type: {$fileatt_type};\n" ^^ > ."name=\"{$fileatt_name}\"\n" > ."Content-Disposition: attachment;\n" ^^ > ." filename=\"{$fileatt_name}\"\n" Change to: ."Content-Type: {$fileatt_type}; name=\"{$fileatt_name}\"\n" ."Content-Disposition: attachment; filename=\"{$fileatt_name}\"\n" Further > .$fileatt_data."\n\n" ^^ > ."--{$mime_boundary}--\n"; try removing a "\n": .$fileatt_data."\n" ."--{$mime_boundary}--\n"; ---- The code below works for … |