On Fri, 1 Oct 2004 10:27:45 +1000, justin.baiocchi@xxxxxxxx <justin.baiocchi@xxxxxxxx> wrote: > Hi, > > When I use the variable $_SERVER['AUTH_USER'] it comes out as > domain\\username when inserted into the MySQL database. So when I try to > update the record looking for a match as below it doesn't work because > the query is looking for where ident=domain\username. > > $result = mysql_query("UPDATE aec SET filename='$filename' WHERE > ident='".$_SERVER['AUTH_USER']."'") or die (mysql_error()); > > Anybody know what I am doing wrong? In MySQL, \ is an escape character. \\ stands for an actual \. for details, just click the link and read on http://www.php.net/manual/en/function.mysql-real-escape-string.php ---- ramil http://ramil.sagum.net -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php