Jump to content

ramboangel11

Members
  • Posts

    32
  • Joined

  • Last visited

    Never

Everything posted by ramboangel11

  1. I'd like to detect emails that hard bounce after i send out my newsletter, and then delete them from the table that stores them in my database. Any ideas? Thank you.
  2. $sql = "DELETE FROM $table WHERE id = '$_POST[id]'";$result = mysql_query($sql, $connection) or die(mysql_error()); you need to define the name of the table you are deleting the user id from. then: WHERE id='$id' instead of the post id. Hopefully that works for you.
  3. I'm not getting anything and I've added false emails to the email list. Also, they are coming from "anonymous" and not the email I put in the from field. $headers .= "From: myemail@aol.com" . "\r\n"; $headers .= "Error-To: <" . "email@aol.com" . ">\r\n"; $headers .= "Return-Path: <" . "email@aol.com" . ">\r\n"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
  4. I have a table in my database named newsletter, with a field named email. Is there a way in php to delete the row with email address field if the email is undeliverable to that email address because it no longer exists? Thank you in advance!
  5. Thank you Fenway for your help. Pikachu2000, changing mysql_fetch_row to mysql_fetch_assoc fixed EVERYTHING! How come it's always one teeny tiny thing...You're awesome. Fantastic. You've made me ecstatic. haha. THANK YOU!
  6. This is what I've tried with getting rid of $get_info: print "\t<td><font face=arial size=1/>{['name']}</font></td>\n"; print "\t<td><font face=arial size=1/>['name']</font></td>\n"; print "\t<td><font face=arial size=1/>$name</font></td>\n"; This is what my code looks like: $result = mysql_query( "SELECT name, price, thumbnail FROM s01_Products ORDER BY RAND() LIMIT 1" ) or die("SELECT Error: ".mysql_error()); $num_rows = mysql_num_rows($result); print "<table width=200 border=1>\n"; while ($get_info = mysql_fetch_row($result)){ print "<tr>\n"; print "\t<td><font face=arial size=1/>{$get_info['name']}</font></td>\n"; print "\t<td><font face=arial size=1/>{$get_info['price']}</font></td>\n"; print "\t<td><img src=\"{$get_info['thumbnail']}\"></td>\n"; print "</tr>\n"; } print "</table>\n"; Nothing is printing. The image shows up as broken. Phoo.
  7. How come none of the information is printing out now? I got rid of the foreach statement, and have them printing separately as suggested by Pikachu.
  8. graphics/00000001/toysandgames.jpg was the text displaying from the thumbnail field. and i was just thinking maybe the thumbnail field should be directed to a path? now it shows a broken image in that section, and the name and price are not printing at all. >.<
  9. MySQL client version: 5.0.77 My code works fine. Displays what I want. However, I want to display the "thumbnail" field as an image, rather than text. I feel like my mind is too boggled from too many tutorials, and I feel like a rookie! The name and price should be displayed as text, which they are, and the thumbnail field is displaying the image filename, and I'd like it to display the image itself. Help, please? Thank you in advance! $result = mysql_query( "SELECT name, price, thumbnail FROM s01_Products ORDER BY RAND() LIMIT 1" ) or die("SELECT Error: ".mysql_error()); $num_rows = mysql_num_rows($result); print "<table width=200 border=1>\n"; while ($get_info = mysql_fetch_row($result)){ print "<tr>\n"; foreach ($get_info as $field) print "\t<td><font face=arial size=1/>$field</font></td>\n"; print "</tr>\n"; } print "</table>\n";
  10. No, they used a program called ABS or something along those lines that precodes for you. Very old program and not up to date with current coding standards. And anyway my question isn't for that project anymore. Just a regular php/html coding question.
  11. OKAY, now the email sends with this code: So it sends successfully, but this is what it redirects to after you hit submit. I must be missing something... ERROR Please go back and fill in all fields completely. Warning: Cannot modify header information - headers already sent by /TEST/sendmail.php on line 48
  12. Hello again! Php hates me on different servers... This is my code to send the maill to my email. I get no errors returned, and it redirects to the thankyou page like it successfully sent the email, however, no email in my inbox, and none in spam either... All my variables are labeled correctly, and the action of my form is set to this .php page. Why won't I get an email? Help!!! Thank you!
  13. Well I want to validate each text-field of my form. Let me tell you this: I originally had each individual barrier in a list. However, I couldn't figure out how to get all of the variables into the body of the email (i was tired, it was late) so my sister suggested I concatenate them into one array. Worked after a little bit of tweaking. Well, I'd like to make my form as secure as possible, so I realized I need to validate each variable (especially since I don't want to receive blank forms AT ALL). I hope that's a good explanation. Thanks!
  14. I've been searching for awhile now on how to validate each individual element of my array $message, and I just can't seem to figure it out. Nothing works! Does anybody know how to validate each element without having to revamp my whole code?
  15. Hi, I solved this issue by myself. Thanks for the help!
  16. all those letters are me just fudging the form.
  17. Still blank emails. Sorry this is such a trouble!
  18. Actually that didn't make the emails include content. Still blank.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.