I'm having a lot of trouble with storing my values from a database into a dropdown list. The code doesn't bring any errors, but it just freezes...
Code
<div class="input-field col-md-12">
<?php
echo "<select name='pcID'>";
$query = "SELECT benutzername FROM benutzer";
$result = mysql_query($query);
if(mysql_num_rows($query)>0){
while($row = mysql_fetch_array($result)){
echo "<option value=\"owner1\">" . $row['benutzername'] . "
</option>";
}
}
echo "</select>";
?>
</div>
</div>
I found a lot of other solutions for my problem. But no solution worked for me. It just freezes up (on my loading screen). And as soon as I remove the PHP part it unfreezes...
Does anyone know how I can solve my problem?
Edit
yea, like I said. I get no error message in the console at all...