Re: The variable $_SERVER['AUTH_USER'] gives domain\\username problem
| From: | Ramil Sagum | Date: | Fri, 01 Oct 2004 01:40:25 +0000 |
| Subject: | Re: The variable $_SERVER['AUTH_USER'] gives domain\\username problem | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-36502@lists.php.net to get a copy of this message | ||
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