I'd like to do something like this :
<select name="cities">
<option value="<?php=$row['city']?>"><?php=$row['city']?></option>
</select>
But the previous code doesn't work.
Does somebody know how to fix this ?
This is not possible:
<?php=$row['city']?>
I guess you mean:
<?php echo $row['city']; ?>
If you want to use this:
<?= $row['city'] ?>
Get PHP 5.4 or enable short_open_tagIni in your php.ini.