Bluehost.com Web Hosting $6.95

PHP, MySQL & storing HTML tags

This is a discussion on PHP, MySQL & storing HTML tags within the PHP General forums, part of the PHP Programming Forums category; Hello ng, I'm completely stuck with my PHP program. I'm using a form to add products to my ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-22-2003
Willem van der Berg
 
Posts: n/a
Default PHP, MySQL & storing HTML tags

Hello ng,

I'm completely stuck with my PHP program. I'm using a form to add products
to my MySQL database. I specifically want to use HTML tags to be saved along
with the text.
I'm looking at a piece I code I can't imagine being incorrect... yet my
query results in absolutely nothing, not even an error.

$Query = "INSERT INTO products_description (products_id, language_id,
products_name, products_description) VALUES ('$Temp', '1', '$Titel',
'$Beschrijving')";
$QueryResultaat = mysql_query ($Query);

Of course the connection to the database has been properly made, and above
variables all have the right values. The only possible reason why this code
won't work is because of HTML tags in $Beschrijving... I think.

Please help me out here! I am going nuts.... I need to store the HTML tags
in my MySQL database and if there's a special trick to get it to work, that
would be great. However, the HTML tags need to be retrieved as well, so
converting it to something else won't do.

MUCH thanks in advance if you can fix this problem that's been stalling my
progress for some hours now.

Regards,
Willem van der Berg


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 01:51 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0