Darkmatter5 Posted July 24, 2008 Share Posted July 24, 2008 I have a table with 3 enum types all three have valid values of No or Yes. As an example: $employee_id = 1 Record 1: active_employee = Yes If I run the following code $query="SELECT active_employee FROM byrnjobdb.employees WHERE employee_id = $employee_id"; $result=mysql_query($query); $value=mysql_fetch_array($result); and I echo $value, I get "Array". Why does it not say "Yes"? Link to comment https://forums.phpfreaks.com/topic/116438-solved-help-with-strange-mysql-query-result/ Share on other sites More sharing options...
JonnyThunder Posted July 24, 2008 Share Posted July 24, 2008 Because you need to echo the array value.... echo $value['fieldnamehere']; Link to comment https://forums.phpfreaks.com/topic/116438-solved-help-with-strange-mysql-query-result/#findComment-598754 Share on other sites More sharing options...
Darkmatter5 Posted July 24, 2008 Author Share Posted July 24, 2008 Thanks! Link to comment https://forums.phpfreaks.com/topic/116438-solved-help-with-strange-mysql-query-result/#findComment-598779 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.