This has been great info and a big help to me. I thank you for taking the time to explain it and rewrite my code.
I'll give those last suggestions a try to see if they remedy the double emailing issue. At least I'm sending out two quality emails now! haha.
That worked great, except it still sends two emails. Thoughts on that?
Btw, was it the fact that my code didn't specify $messsageHeader that it was failing?
And thank you!!
I dropped my headers and message code and used yours. First time it didn't send anything but a blank email.
then i used part of my code, part of yours. 4 emails.
At this point, i'm getting frustrated and have no clue how to get this to work right. What's crazy is it worked just fine on the...
jpadie, I have worked for hours on the code using your post as a basis and it only got worse. Now it doesn't send the message at all, just a blank email, with the correct To: address, but it sends it 4 times.
This is my old code, that works on my Mac email, but not the other clients. It also...
Ok,I've got a dynamically created form that gets emailed to clients as HTML. PHP/Mysql creates it. Worked fine for everyone until we changed hosts and went from PHP4 to PHP5. Now, it works fine on my Mac and one of my clients PC's, but the rest of his staff receive it as raw html code instead...
i just switched hosts, going from php4 to php5 and have a slew of problems with my code now. Can anyone tell me what's going on here?
I'm getting a PHP notice error of:
PHP Notice: Undefined offset: 1 in /var/www/vhosts/domain.com/httpdocs/folder/file.php on line 76
that points to this code...
Thanks. I didn't realize it was that simple. I guess what confused me about that function was i thought i'd have to put in the code what table it was to look to for the last insert. i guess mysql is smarter than I.
I need to insert data into two tables at the same time from a form for adding new vendors, but I'd like to grab the auto generated ID from the first table and put it in the second table so that they match. Is that even possible and if so, what would the code look like? Thanks. Using php/mysql.
Can someone tell me what is wrong with my sql statement below? I keep getting a syntax error. Thanks.
SELECT * FROM (SELECT vendorname, SUM(cogs)AS sumcogs FROM spec_registrar WHERE orderdate >="2006/01/01" GROUP BY vendorname )as totals WHERE sumcogs >="10000.00
I'm giving jpgraph a try for the first time. Went thru the install with everything left at default. Used some sample code from a tutorial over at phpfreaks.com. I'm getting an error message that I don't know how to address. Maybe someone can shed some light? This is the message in my browser...
I started with these two chunks of code...
<?php
// Note that !== did not exist until 4.0.0-RC2
if ($handle = opendir('/path/to/files')) {
echo "Directory handle: $handle\n";
echo "Files:\n";
/* This is the correct way to loop over the directory. */
while (false !== ($file =...
Is it possible to populate a dropdown menu with the file names that are found in a specified folder on the webserver? For instance, in my /images folder, the dropdown would have all the image files listed.
What I'm trying to do is make a page for the user to select a file and then associate...
What is the best way to store keywords in a database table.
I have a document, and want to be able to first, register various keywords associated with the document, and then have a page where the user can type in keywords to do a search for matching documents. Then they would eventually select...
I've got a fairly unique situation where i need to filter out records based on a location code. I have two regions in a warehouse, Quickpick and then Stock.
The Quickpick locations have a code of a letter followed by 3 numbers (A001, B203). The Stock locations are 2 letters and a number (FJ4...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.