I tried to Enter something in a legacy Extension and I got:
Warning: mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO)
Then I changed all instances to
mysqli_real_escape_string
And retried. At that point I got:
mysqli_real_escape_string() expects exactly 2 parameters, 1 given on line 235
Here is the function:
function Lookup_addLookup ($url, $name, $group)
{
$dbw = wfGetDB(DB_MASTER);
$groupOrder = Lookup_getGroupOrder($group);
$dbw->query ("INSERT INTO ".Lookup_prefix()."lookups (lu_name, lu_url, lu_group, lu_order, lu_group_order) VALUES ('".mysqli_real_escape_string($name)."', '".mysqli_real_escape_string($url)."', '".mysqli_real_escape_string($group)."', 1, $groupOrder)");
Lookup_reOrderGroups();
return true;
}