RE: [PHP-DB] The variable $_SERVER['AUTH_USER'] gives domain\\username problem

From: Date: Fri, 01 Oct 2004 01:47:50 +0000
Subject: RE: [PHP-DB] The variable $_SERVER['AUTH_USER'] gives domain\\username problem
Groups: php.db 
Request: Send a blank email to php-db+get-36503@lists.php.net to get a copy of this message
I made the change but the domain\username now appears in my database as: domain\\\\username -----Original Message----- From: Ramil Sagum [mailto:ramil.sagum@gmail.com] Sent: Friday, 1 October 2004 11:40 AM To: Baiocchi, Justin (CSIRO IT, Armidale) Cc: php-db@lists.php.net Subject: Re: [PHP-DB] The variable $_SERVER['AUTH_USER'] gives domain\\username problem On Fri, 1 Oct 2004 11:32:29 +1000, justin.baiocchi@csiro.au <justin.baiocchi@csiro.au> wrote: > No, still no idea :) > $sql = "INSERT INTO aec SET date='$date', title='$title', > ident='$ident', id='$id'"; > mysql_query($sql); I feel good today :) so, $sql = "INSERT INTO aec SET date='$date', title='$title', ident='" . mysql_real_escape_string($ident) . "', id='$id'"; (After it works and everything is crystal clear, you might want to try validating the title, ident and id BEFORE using it in the query. ) HTH! ---- ramil http://ramil.sagum.net

« previous php.db (#36503) next »