I'm bringing this variable from the mysql database into a text input, but the result I'm not able to show because of the peliculas.
$cota = '946.9"1968/1975" AMA Ant';
echo '<input type="text" value="'.$cota.'" />';
result: 946.9
I'm bringing this variable from the mysql database into a text input, but the result I'm not able to show because of the peliculas.
$cota = '946.9"1968/1975" AMA Ant';
echo '<input type="text" value="'.$cota.'" />';
result: 946.9
Do this:
<?php
$cota = '946.9"1968/1975" AMA Ant';
echo "<input type='text' value='" . $cota . "'/>";
Basically use htmlentities :
<?php
$cota = '946.9"1968/1975" AMA Ant';
echo '<input type="text" value="'.htmlentities($cota, ENT_QUOTES).'" />';