Jump to content

Winter0Star

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Everything posted by Winter0Star

  1. Going to make a site here soon and I need a little help. I will be storing an array of ID's into a MySQL database. I'm using the serialize function to store the array (however, I can change this if there is a better way). However, I want to be able to search for ID's directly through the MySQL statement. For example, I need to search for ID "254". I can't search through the serialized information unless I pull it out first. I want to be able to do something like this... SELECT name FROM table WHERE id_list = '$id' I'm looking for the best way to directly search for an ID. I hope this makes sense.
  2. Thanks, by adding the HTML the emails look great. One last thing. span tag are not showing up. My text colors use <span style="color: #ffff00; ">Test<s/pan>. So these not work in HTML emails?
  3. Its just whatever the user types into the form. Maybe I'm missing tags?
  4. I'm having an issue with sending HTML Emails. Here is my code, but nothing comes out right when it gets emailed. And my email client is set to view HTML. I can view other HTML emails just fine, but not these. Here is my code to send the email, just wondering whats wrong with it. Thanks for any suggestions. $full_email = $frm_to . '@scotthermanfitness.com'; //define the receiver of the email $to = $full_email; //define the subject of the email $subject = 'Form Submit - SHF ' . $to_text . ' (' . $frm_name . ')'; //create a boundary string. It must be unique //so we use the MD5 algorithm to generate a random hash $random_hash = md5(date('r', time())); //define the headers we want passed. Note that they are separated with \r\n $headers = "From: " . $frm_email . "\r\nReply-To: " . $frm_email; //add boundary string and mime type specification //$headers .= "\r\nContent-Type: multipart/alternative; boundary=\"PHP-alt-".$random_hash."\""; $headers .= " Content-type: text/html\r\n"; //begin of HTML message $message = $frm_content; //send the email $mail_sent = @mail( $to, $subject, $message, $headers );
×
×
  • 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.