Skip to content

Instantly share code, notes, and snippets.

@ogabrielsantos
Created September 13, 2016 21:30
Show Gist options
  • Save ogabrielsantos/0b734d1fc873f32fae571ddc68ea298e to your computer and use it in GitHub Desktop.
Save ogabrielsantos/0b734d1fc873f32fae571ddc68ea298e to your computer and use it in GitHub Desktop.
<?php
include 'db.php';
$result = $MySQLiconn->query("select table_name from information_schema.tables where table_name like 'tb%' order by 1");
$t1 = array();
while ($row = mysqli_fetch_array($result)) {
$t1[] = $row;
}
$count = count($t1);
echo $count;
echo "<br />";
mysqli_free_result($result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment