Skip to content

Instantly share code, notes, and snippets.

@anotherjames
Created May 23, 2024 08:06
Show Gist options
  • Select an option

  • Save anotherjames/3e420378e36b2d651db72aa07466c867 to your computer and use it in GitHub Desktop.

Select an option

Save anotherjames/3e420378e36b2d651db72aa07466c867 to your computer and use it in GitHub Desktop.
phpMyAdmin: Only show matches in string search results
jQuery('#searchresults').children('table').find('td:first-child').each(function () {
if (jQuery.trim(jQuery(this).text()).substring(0, 4) === '0 ma') {
jQuery(this).parent().remove()
}
})
@anotherjames
Copy link
Author

Run a search, then from the results page, run this snippet in the devtools console to remove all rows that have 0 matches for your string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment