Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2000121

[PHP-DB] Problem - Insert data into mysql From: Ian (hee <email protected>)
Date: 12/06/00

Hi ; )

I'm facing a problem when I input/enter a sentence with special character
like '.
Examples : -
$test1 = "We're going to town
est2 = "We are going to town

My HTML form tag.
<textarea name="test' rows="5" cols="40"></textarea>

My PHP $sql statement like below:-
$sql = "INSERT INTO
            demo(id,name,info)
            values('$id','$name','$test1')";

I can't insert data $test1 into mysql database, but data $test2 is NO
PROBLEM.

Could anybody help me !!!!!
Any help would be apreciate.

Kind regards,
Hee.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>