Hi guys,
Have a option box with the following code
<?php foreach ($pdt_genres as $gen) { ?>
<option value="<?php echo $gen['genre_name']; ?>" <?php if ($gen['genre_name'] == $genre_name) { ?> selected="selected" <?php } ?>><?php echo $gen['genre_name']; ?></option>
<?php } ?>
This works with every Genre Name except (7" Singles, 10" Singles, 12" Singles)
Is it having issues reading the double quotation mark?
If so what is my best course of action?
replace the double quotation marks by the double prime character (U+2033, which is the correct unit character for inch).
should that not be possible you have to escape the double quotes.
So you just write U+2033?
felgall
4
Encodings
HTML Entity (decimal) ″
HTML Entity (hex) ″
HTML Entity (named) ″
How to type in Microsoft Windows Alt +2033
UTF-8 (hex) 0xE2 0x80 0xB3 (e280b3)
UTF-8 (binary) 11100010:10000000:10110011
UTF-16 (hex) 0x2033 (2033)
UTF-16 (decimal) 8,243
UTF-32 (hex) 0x00002033 (2033)
UTF-32 (decimal) 8,243
C/C++/Java source code "\u2033"
Python source code u"\u2033"
1 Like
This did not work for me, anyone else know a work around
Double quote is stored in MySQL and need to echo it but not working with
<?php foreach ($pdt_genres as $gen) { ?>
<option value="<?php echo $gen['genre_name']; ?>" <?php if ($gen['genre_name'] == $genre_name) { ?> selected="selected" <?php } ?>><?php echo $gen['genre_name']; ?></option>
<?php } ?>
@felgall #hatsoff
You are indeed a master. Teach me please 
system
Closed
8
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.