Friends re-edited the PDO connection below:
<?php
$conn = new PDO( 'mysql:host=localhost;dbname=pbfjacar_site' , 'pbfjacar_murilo' , 'smc100164' );
$stmt = $conn-> prepare('SELECT font FROM fontes');
$stmt-> execute();
$result = $stmt-> fetchAll(PDO::FETCH_ASSOC);
?>
To perform this new operation:
<select name="tipo_font_end">
<?php foreach( $result as $row ) ?>
<option value="<?php echo $row['font'];?>"><?php echo $row['font'];?></option>
</select>
But I'm not getting the expected result as it now pulls only the last "ID" from a total of 10 entries in the "fonts" table, as shown below:
I'menteringthetestaccessaddressbelowsoyoucanseewhat'sgoingon! link
If friends can show me where I'm wrong or even what is missing, I'll be very grateful. Hugs to all.