ODBC problem

From: Date: Sun, 11 Jun 2000 13:27:12 +0000
Subject: ODBC problem
Groups: php.windows 
Request: Send a blank email to php-windows+get-394@lists.php.net to get a copy of this message
Hi, <? .... $db_query = "INSERT INTO UserInfo (Name, RollNumber, Email, Account, Type) ". "VALUES ('$username', '$rollnumber', '$email', '$accountname', '$accounttype')"; $db_result = odbc_exec($db_conn, $db_query); ... ?> This works fine till one of my fields contain a value like $username = D'hooghe The problem is the <'> in the value. Anyone got a nice solution howto make this works and make the ODBC succeed. Greetings.

« previous php.windows (#394) next »