Jump to content

Getting < and > from MySQL to display on php page


phpocean

Recommended Posts

You can input and store them as a single character any time you want.

 

If you want them to be displayed instead of being treated as part of a HTML tag, you must convert them to < and > before you output them to the browser.

When I store them in MySQL as < and >, it won't show my on my php page.

 

Say if I store it like <News> in MySQL, it will show as News without the <> on my php page.

 

By the way, are you saying if I input them through php INSERT code instead of phpMyAdmin, it will show?

 

But isn't there a way to do it using phpMyAdmin?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.