Forum Moderators: coopster
id tinyint(2) - primary key
data char(100 )
function writeOptionList( $table,$field )
{
global $connect;
$result = mysql_query( "SELECT $field FROM $table", $connect );
if (! $result )
{
print "failed to open $table<p>";
return false;
}
while ( $a_row = mysql_fetch_array( $result ) ){
print "<option value=\"$a_row[id]\"";
print ">$a_row[data]\n"; } }
it have a blank value for it. by where if i switch the both value. the other side will have a blank value. i am sure the field exist in the database but what could be wrong.