Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
$tablename = ''; //fill in the table name
$sql = "SELECT *, SQL_CALC_FOUND_ROWS from $tablename";
$result = mysql_query($sql) or die(mysql_error());
$php_num_rows = mysql_num_rows($result);
//iterate the rows
$counter = 0;
echo "<table border=\"1\">"
while ($row=mysql_fetch_assoc($result)){
$counter++;
echo "<tr>";
foreach($row as $col){
echo "<td>$col</td>";
}
echo "</tr>";
}
echo "</table>";
//retrieve SQL calculation
$result = mysql_query("select found_rows");
$sqlNumRows = myqsl_result($result ,0,0);
echo <<<HTML
PHP coded solution reports $php_num_rows rows<br/>
Number of outputted rows were $counter <br/>
Mysql reports that it found $sqlNumRows rows
HTML;