Hello world.
i have this line of code used for a query
$fullntuser = mysql_real_escape_string("domain\$ntuser");
$ntuser is passed from a form and pulls through correctly.
i have a field in the database which is filled with domain\name for all users.
when i run the above line i get this error.
Unknown column 'domain$ntuser' in 'where clause'
if i use the line $fullntuser = mysql_real_escape_string("domain\$ntuser"); - notice the double slash.
i get the output
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\username' at line 1
i'm guessing the problem is to do with the slash stored in the database.
does anyone know how i take the variable successfully pulled from the form, ie username.
and then add domain slash to the begining so i can pull a second query?
many thanks in advance.