my script works so far:
<?PHP
$dsn="dsn";
$user="";
$pwd="";
if (!$cc=odbc_connect($dsn, $user, $pwd)){
echo "ODBC-Verbindung scheitert";
exit;
}
/ Performing SQL-Query/
$query = "SELECT field FROM dbo.table WHERE (field2 = N'$uname');";
$result = odbc_exec($cc,$query);
while(odbc_fetch_row($result)){
print odbc_result($result,1);
} //while
odbc_close($cc);
?>
The Problem is, that the output is just Text and not a datafield. Your not able to change the data.
I'm really sorry that I'm one of the jerks that bother you with problems like that and haven't RTFM :rolleyes: but I'm really to buisy in the moment and I don't know where to start the search. If You could give me a hint I'd be really thankful.
THX