kramerkeller Posted January 31, 2007 Share Posted January 31, 2007 My HTML intention is this <option value="username"> firstname lastname </option> Pretty simple - except I am inputting username, firstname, lastname from a database HELP - here is the code belowe $result = get_users(); $num_results = $result->num_rows; echo"<select name='salesperson'>"; for ($count = 0; $count<$num_results; $count++) { $row = $result->fetch_assoc(); echo "<option value='".$row['username']."'>".$row['firstname']." ".$row['lastname']."</option>"; } ?> Link to comment https://forums.phpfreaks.com/topic/36502-help-with-escape-characters-i-believe/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.