I have a form that I use to allow my moderators to edit the database information without having my u/p for my account/phpmyadmin.
This works brilliantly expect where something in my database has quotes around it. I use :
<input name="event_title" value="<?php echo $array['event_title']; ?>" type="text" size="30">
as the way to view the data and make alterations.
If the data in the db is:
LordShryku and Weddpacket are awesome
then it prints out fine and everything is good. However if the data in the db is:
"LordShryku and Weedpacket are awesome"
then nothing prints out in the text box.
I tried
<input name="event_title" value="<?php echo nl2br($array['event_title']); ?>" type="text" size="30">
but that didn't work.
Any thoughts? Thanks for reading.