|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-10-01 12:27 UTC] andrei at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 02:00:01 2025 UTC |
$query="SELECT IDgrp, bit FROM " . $mysql_tablename; $res2=mysql_query($query); while ($row=mysql_fetch_array($res2)) { #this should work but does not echo $row["bit"] & $row["IDgrp"]; #changing the var type to integer works $a = (int) $row["bit"]; $b = (int) $row["IDgrp"]; echo $a & $b; } PHP should bring in a MySQL TinyINT as an Integer, right?