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 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. 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 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
Archived
This topic is now archived and is closed to further replies.