Inserting records into MySQL DB

peggyhyena

New Member
Im using the follow script to insert records into my DB:\[code\]$sql = "INSERT INTO fotetweets VALUES('$tweetid','$dp', '', '$username','$tag', '$twittercontent', '$twittertimestamp', '')";mysql_query($sql);\[/code\]However what if \[code\]$twittercontent\[/code\] contains the \[code\]'\[/code\] char, I think it will fail. Correct?If so how can I deal with it correctly?
 
Back
Top