Here is my code:
$query = "SELECT Username, EmailVerified, Blocked FROM user"; $result = mysql_query($query, $link); $row = mysql_fetch_assoc($result); print_r($row);
The Username field, the string and EmailVerified and Blocked are of type bits . The print_r($row) displays the value of the Username field, but not the other two. I tried mysql_fetch_object (), mysql_fetch_row (), mysql_fetch_array (), but the same result.
Can't we get bit fields with mysql_query ()?
source share