• Development

    Snippet: MySQL table sizes ordered by largest to smallest (in MB and Row Count)

    Show All Tables By Size in MB

     

    Show All Tables By Size in MB (if > 1 MB)

     

    Show All Tables By Number of Rows

     

  • Development

    Add Links to Anchors Automatically

    The following snippet is something I used recently to add (below the current item in a menu) links to any anchors found in the content.

    Honestly I could probably create the <ul> outside of the each() loop and save having to check whether it exists with each iteration. Also, it’s probably not necessary to create the aname¬†variable, but the overhead here is minimal.