Skip to content

Instantly share code, notes, and snippets.

@bijayrungta
Created November 25, 2011 22:46
Show Gist options
  • Save bijayrungta/1394597 to your computer and use it in GitHub Desktop.
Save bijayrungta/1394597 to your computer and use it in GitHub Desktop.
Get number of Rows for Tables from phpMyAdmin
o = document.getElementsByClassName('data')[0];
str = "";
for (i = 1; i < o.rows.length - 1; i++) {
str += o.rows[i].cells[1].getElementsByTagName('a')[0].innerHTML
+ ": " + o.rows[i].cells[8].innerHTML
+ "\n";
}
alert(str);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment