Save pdf to mysql
Maybe the field size is too small to store the PDF file? FieldByName 'id'. Free; except msgBox 'Problem Post by axilus » Sun 10 Apr hi, did not work! Create nil ; try UniConnection. Connect; UniConnection. Create nil ; try UniQuery. Open; UniQuery. Free; end; finally UniConnection. Free; end; end. So, I would be very grateful if anyone help this. I know how to upload a file a and save the path in the DB, but now I need to send an automatic email to the user when a new invoice is added to his directory.
Please help. Hi Guys, I have stuck with my problem and i am nothing to php, i already posted this to another php script forum, but haven't solve, so i wondering if anyone here help me and many thanks.
I have an auctions website and I want to create a feature that is similar to ebay in which users will receive an email if one of the auctions they are watching will end in less than 3 hours.
I will be using a cron job to call up this page every 15 minutes. When the cron job executes, I would like it to send 1 email per auction to every user that has that auction on their watchlist if the auction will be ending in 3 hours. I don't know whether it needs to be a separate email for each user or one mass email where their emails are hidden. The 4 tables in my database we are concerned about are "auctions, "users, "watchlists" and "products.
Anways here is what I have so far. I am missing alot because I had no clue what to do. Ok i am stuck, i created a php script that draws data from a mysql dB into a php page. How can I send the page as the body in email?
I do not need to preview the page, but can send it without ever viewing if that helps. When I put my code into a variable it does nothing. Is it caching? Should I load the results into mysql then send? I have a form for users to make reservations and they have to pay for that.
Could my server SSL configuration be the problem? Any help about this, please, would be highly appreciated. The code outputs a pdf files to the browser. How do I save the pdf data to a db or otherwise to the file system? Solved thanks to Piskvor. Solution Code.
If you want the pdf to open in the browser, remove the following line. From the documentation :. It can take one of the following values S: return the document as a string. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 11 years, 5 months ago. Active 2 years, 10 months ago. Viewed 14k times. Improve this question.
0コメント