Hi all,
I know the statement I am using can be done much more efficient, but I just can't get it right!
lots of bla...
And the statement:
more bla.....
JR
As a wise man once said: To build the house you need the stone.
Back to the Basics!
I know the statement I am using can be done much more efficient, but I just can't get it right!
Code:
$conn = db_connect();
$query = "select * from options";
$result = mysql_query($query);
$character = mysql_fetch_array($result);
lots of bla...
And the statement:
Code:
for($i=0; $character = mysql_fetch_object($result); $i++)
{
foreach($character as $name => $value)
{
echo "<OPTION VALUE='$value'>$value</OPTION>";
}
}
more bla.....
JR
As a wise man once said: To build the house you need the stone.
Back to the Basics!