Hi everyone,
Sorry to bother you with basic stuff... Made a little database in MySQl and created some output in a table. Nice. Now I want to create a combobox with this data. But how do you do that. Looked at various placed, but didn't get it
. This is what i got for the table.
Pampers![[afro] [afro] [afro]](/data/assets/smilies/afro.gif)
Keeping it simple can be complicated
Sorry to bother you with basic stuff... Made a little database in MySQl and created some output in a table. Nice. Now I want to create a combobox with this data. But how do you do that. Looked at various placed, but didn't get it
![[bigglasses] [bigglasses] [bigglasses]](/data/assets/smilies/bigglasses.gif)
Code:
<?
//dim
$database="PhoneCode";
mysql_connect(localhost);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM tblIntPhoneCode";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
//build table
//table header
echo "<b><center>Database Output</center></b><br><br>";
//table filling
$i=0;
while ($i < $num) {
$country=mysql_result($result,$i,"country");
$phonecode=mysql_result($result,$i,"phonecode");
echo "$country<br>";
$i++;
}
?>
Pampers
![[afro] [afro] [afro]](/data/assets/smilies/afro.gif)
Keeping it simple can be complicated