I say don't use magic_quotes_gpc. You need to check your input data anyways - it's just an additional step. But you should always check for magic_quotes_gpc.
if (!get_magic_quotes_gpc()) {
$name = pg_escape_string($name);
$title = pg_escape_string($title);
}
$id = (int)$_GET['id'];
...
Or you could just turn magic_quotes_gpc off in php.ini, or use php_admin_flag in httpd.conf on a per site basis.