ravMon07 Posted June 19, 2007 Share Posted June 19, 2007 i have a problem exmple of code: include 'dbconnect.php'; $query = "INSERT INTO profil (nama,noMatrik,kumpulan,jantina,surg,perubatan,dermatologi,bec,ong,ortopedik,pediatrik,psy,radiologi,bilgagal) VALUES ('$name','$matrik','$kumpulan','$jantina','$surg','$perubatan','$derma','$krk','$ong','$orto','$pedia','$psy','$radio','$bilgagal')"; $result = odbc_exec($odbc,$query); how can i add the data entry that have sign (')?for example : o'neil the code can't read the name since the variable use is '$name'. please help me asap Quote Link to comment https://forums.phpfreaks.com/topic/56134-to-add-sign-in-variable/ Share on other sites More sharing options...
trq Posted June 19, 2007 Share Posted June 19, 2007 I think your looking for mysql_real_esacpe_string though your question is VERY vague. Quote Link to comment https://forums.phpfreaks.com/topic/56134-to-add-sign-in-variable/#findComment-277290 Share on other sites More sharing options...
ravMon07 Posted June 19, 2007 Author Share Posted June 19, 2007 for others information, i use ms access as database, not mysql so the coding must be differ with mysql Quote Link to comment https://forums.phpfreaks.com/topic/56134-to-add-sign-in-variable/#findComment-277298 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.