I am using zend studio for encoding in php.
In zend studio the while... line while... in the following code shows an assignment in condition warning, but it works fine and shows 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 does not show a warning in zend studio , but it shows me tables after a long time of 20 to 30 seconds and a long space according to the 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 />'; }
source share