![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Aug 2007
Location: online at woocha.com
Posts: 24
Rep Power: 0
![]() |
store HTML is a text field in a table on a MySQL Database
I am emailing a field from a MySQL DB table. The field type is text. Basically, it is an accept email. How can I make it so the email sent is capable of emailing HTML to make the message more attractive?
I have already tried to insert < html > into the text field, but that doesn't work....The received email, just diplays the text < html > and then the rest of the text. ANy suggestions? |
|
|
|
|
|
#2 |
|
Expert Programmer
|
You need to set the Content-Type header to text/html.
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Aug 2007
Location: online at woocha.com
Posts: 24
Rep Power: 0
![]() |
What do you mean?
Do you mean in my php code? here is my code: if ($action == "decline")
{
$query = "delete from orders where id=$id and merchant=$merchant";
mysql_query( $query);
if ($sendemail == "yes")
{
mail("\"$name\" <$email>",
"Your order has been declined!",
stripslashes($r['emaildecline']),
"From: \"".$r['company_name']."\" <".$r['email'].">\nReply-To: ".$r['email']);
}
} |
|
|
|
|
|
#4 |
|
Sexy Programmer
|
No. In your MySQL database, you should be able to change that field's Content-Type. Are you using any GUI to manage your data?
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Aug 2007
Location: online at woocha.com
Posts: 24
Rep Power: 0
![]() |
Do you mean PHPMyAdmin?
|
|
|
|
|
|
#6 |
|
Sexy Programmer
|
Yes! I don't have PHPMyAdmin in front of me but when you edit your columns, you should see where you can change the Content-Type.
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#7 |
|
Newbie
Join Date: Aug 2007
Location: online at woocha.com
Posts: 24
Rep Power: 0
![]() |
Yes...do you know what type it should be instead of text?
|
|
|
|
|
|
#8 |
|
Sexy Programmer
|
Read Above!
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#9 |
|
Newbie
Join Date: Aug 2007
Location: online at woocha.com
Posts: 24
Rep Power: 0
![]() |
there is no option for text/html...there is text, date, smallint, mediumint, int bigint, float, double, dceimal, datetime, timestamp, time, year, char, tinyblob, tinytext, blob, mediumblob, mediumtext, longblob, longtext, enum, set, bool
|
|
|
|
|
|
#10 |
|
Sexy Programmer
|
I think you're look at the wrong option list. There should be another one, maybe it's file type?
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| start Learning HTMl | smita | HTML / XHTML / CSS | 0 | Mar 15th, 2007 7:38 AM |
| Basic HTML Tutorial - Reuben Keeney | ReubenK | HTML / XHTML / CSS | 14 | Mar 26th, 2006 5:50 AM |
| How to detect cursor location and insert text??? | syntax-error | C# | 3 | Jun 30th, 2005 1:42 AM |
| how do i automate text data and input into database? | lionel84 | C# | 0 | Jun 26th, 2005 9:35 PM |