ODBC problem..
| From: | fredo | Date: | Sun, 11 Jun 2000 13:58:01 +0000 |
| Subject: | ODBC problem.. | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-314@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.