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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I made the change but the domain\username now appears in my database as:
domain\\\\username



-----Original Message-----
From: Ramil Sagum [mailto:ramil.sagum@xxxxxxxxx] 
Sent: Friday, 1 October 2004 11:40 AM
To: Baiocchi, Justin (CSIRO IT, Armidale)
Cc: php-db@xxxxxxxxxxxxx
Subject: Re:  The variable $_SERVER['AUTH_USER'] gives
domain\\username problem


On Fri, 1 Oct 2004 11:32:29 +1000, justin.baiocchi@xxxxxxxx
<justin.baiocchi@xxxxxxxx> 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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux