May 10, 2005 #1 mirfan Programmer Feb 4, 2005 13 PK In simple method of data insertion and updation, i'm getting errors when i try to enter some special character in db.. like ;,'," etc etc.... please guide my.. how can i insert these characters in db. Thanks
In simple method of data insertion and updation, i'm getting errors when i try to enter some special character in db.. like ;,'," etc etc.... please guide my.. how can i insert these characters in db. Thanks
May 10, 2005 #2 sleipnir214 Programmer May 6, 2002 15,350 US What database system? The mysql_* family of functions includes the handy function mysql_escape_string() which does that nicely for MySQL. Other database systems are not as easy. Want the best answers? Ask the best questions! TANSTAAFL!! Upvote 0 Downvote
What database system? The mysql_* family of functions includes the handy function mysql_escape_string() which does that nicely for MySQL. Other database systems are not as easy. Want the best answers? Ask the best questions! TANSTAAFL!!
May 10, 2005 #3 DRJ478 IS-IT--Management Aug 10, 2001 2,264 US Not enough information for a meaningful answer. What database technology are you using? Upvote 0 Downvote
May 10, 2005 Thread starter #4 mirfan Programmer Feb 4, 2005 13 PK Thanks for the co-operation but the problem is still there.. i want to insert those special characters in db.. the function u tell me.. is removing those characters from string.. but i want to insert them in the db. please guide me again Thanks Upvote 0 Downvote
Thanks for the co-operation but the problem is still there.. i want to insert those special characters in db.. the function u tell me.. is removing those characters from string.. but i want to insert them in the db. please guide me again Thanks
May 10, 2005 Thread starter #5 mirfan Programmer Feb 4, 2005 13 PK sorry the DB is MYSQL Upvote 0 Downvote
May 10, 2005 #6 sleipnir214 Programmer May 6, 2002 15,350 US Once you have removed or escaped the offending characters, you must use the string in an INSERT or UPDATE query and the appropriate query function Want the best answers? Ask the best questions! TANSTAAFL!! Upvote 0 Downvote
Once you have removed or escaped the offending characters, you must use the string in an INSERT or UPDATE query and the appropriate query function Want the best answers? Ask the best questions! TANSTAAFL!!
May 10, 2005 Thread starter #7 mirfan Programmer Feb 4, 2005 13 PK thanks again for the help.. please guide me with an example Upvote 0 Downvote
May 10, 2005 #8 sleipnir214 Programmer May 6, 2002 15,350 US The PHP online manual has lots of code examples. Want the best answers? Ask the best questions! TANSTAAFL!! Upvote 0 Downvote
The PHP online manual has lots of code examples. Want the best answers? Ask the best questions! TANSTAAFL!!