Hi, I am very new to PHP (self taught only 14 yrs old) and am having a problem with quotes! I have this code:
echo '<option value="';
echo '.$row['codename'].';
echo '"';
echo '>.$row['gamename'].';
echo '</option>';
and have also tried:
echo '<option value="';
echo '.$row[\\'codename\\'].';
echo '"';
echo '>.$row[\\'gamename\\'].';
echo '</option>';
The second one works but displays this in the HTML:
<option value=".$row['codename'].">.$row['gamename'].</option>
How can I get it to display this in the HTML:
<option value="codenameintable">Game Name In Table</option>
Thanks for your time. 😃