You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$total = yourls_get_db()->fetchValue( "SELECT COUNT(*) FROM `$table`" );
37
-
$query = "SELECT $selected_fields FROM `$table` ORDER BY `$sort_by` $sort_order LIMIT $offset, $perpage";
38
+
$where = $query ? "WHERE `keyword` LIKE '%$query%'" : ''; // If you have millions of links, this query can be slow. You can replace LIKE with = if you want exact match.
39
+
$query = "SELECT $selected_fields FROM `$table` $where ORDER BY `$sort_by` $sort_order LIMIT $offset, $perpage";
0 commit comments