Click here to Skip to main content
15,887,413 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am making a student report and i want to store all report with html in data base and we view at any time (complete html mean all html page store in data base and we get that page with key )
Posted

1 solution

Use a function called mysql_real_escape_string() like this

$html_code = "<p>This is content</p>"
$content = mysql_real_escape_string(htmlspecialchars($html_code));


Then insert value of $content in the database.
 
Share this answer
 
Comments
pucit009 29-Jun-11 3:13am    
thanks for help and how we retrieve that page and show the values (for example i am making a result card that show the one student information and i want to store that page with student information that is randomly change how we store all these information.)
Kiran Sonawane 29-Jun-11 3:24am    
What do you mean store page? I guess you are storing the html in particular table right?
Kiran Sonawane 29-Jun-11 3:29am    
This may be helpful for you
http://www.php-forum.com/phpforum/viewtopic.php?f=2&t=12353
pucit009 29-Jun-11 3:32am    
store page mean(i am making a result card of the student we make this result card in html and get the data from data base and show the result card for example i want to show the asif result card result card show with all its subject and marks i want to save this final result card )

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900