0

Can you show me the way about storing the special characters into mysql database using php.

Actually,I'm working on such a website where user can upload text and programming codes into mysql.

Thank you in advance.

2
Contributors
4
Replies
10
Views
6 Years
Discussion Span
Last Post by vibhaJ
1

For adding data in mysql:
html_entities(mysql_real_escape_string($variable));

For echoing:
html_entity_decode(stripslashes($variable));

Votes + Comments
very easy way to store special characters in mysql using php
0

vibhadevit

Thank you for replying on time. I have been solved my problem by getting help from your post. My other friends can also need the code so see the below

for displaying the data from mysql
$str=html_entity_decode(stripslashes($rows[4]));

for inserting the data with special characters into mysql
$var_name=htmlentities(mysql_real_escape_string($detail));

0

I am not sure if this point is still pending or not.
But why your logo is so big??Its taking soo long to load.
You can use resized image.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.