I am using zend studio for coding in php.
In zend studio
the line of while...
in following code shows assignment in condition
warning but it work fine and show me tables instantly.
$oDB = new db;
print '<strong>Twitter Database Tables</strong><br />';
$result = $oDB->select('SHOW TABLES');
while ($row = mysqli_fetch_row($result)) {
print $row[0] . '<br />';
}
But when I solve this warning with the following code it don't show warning in zend studio
but it show me tables after long time about 20 to 30 seconds
and long white space under results. Why?
$oDB = new db;
print '<strong>Twitter Database Tables</strong><br />';
$result = $oDB->select('SHOW TABLES');
while (( $row = mysqli_fetch_row($result)) !==FALSE) {
print $row[0] . '<br />';
}