Hi there:
I have a function that successfully displays a select menu generated from an enum field in a MySQL DB.
However, the place I want to use it is within an if/else structure, and as hard as I try, I can't do:
if(mysql_field_type($fields,$i) == 'blob') {
//----display field data in <textfield> (This *is* OK!)
}
else if(mysql_field_type($fields,$i) == 'enum') {
//---use select menu generation function here (This *is not* OK!)
}
Does anyone have any ideas??
Cheers very much.
Russ
I have a function that successfully displays a select menu generated from an enum field in a MySQL DB.
However, the place I want to use it is within an if/else structure, and as hard as I try, I can't do:
if(mysql_field_type($fields,$i) == 'blob') {
//----display field data in <textfield> (This *is* OK!)
}
else if(mysql_field_type($fields,$i) == 'enum') {
//---use select menu generation function here (This *is not* OK!)
}
Does anyone have any ideas??
Cheers very much.
Russ