2017/2/22 13:53
mjoel
Quite a regular
Posts: 325
Since: 2006/12/9
$employee_id = mysql_real_escape_string($_GET['id']);
2017/2/22 14:35
aerograf
Posts: 214
Since: 2017/1/7 1
$employee_id = mysqli_real_escape_string($_GET['id']);
2017/2/22 22:20
Mamba
Moderator
Posts: 11437
Since: 2004/4/23
2017/2/23 4:43
geekwright
Posts: 314
Since: 2010/10/15
$employee_id = $xoopsDB->escape($_GET['id']);
mjoel wrote:since mysql_real_escape_string is deprecatedif i have this code $employee_id = mysql_real_escape_string($_GET['id']); what should i replace it with
2017/2/23 14:34
geekwright wrote:The BEST way is to do this: $employee_id = $xoopsDB->escape($_GET['id']); That will continue to work no matter what the underlying database driver is in the future.Quote:mjoel wrote:since mysql_real_escape_string is deprecatedif i have this code $employee_id = mysql_real_escape_string($_GET['id']); what should i replace it with
Advanced Search
177 user(s) are online (153 user(s) are browsing Support Forums)
Members: 1
Guests: 176
heyula,