Reputation: 2133
Every time I insert data using an SQL query I get an error. I suspect it's because of the apostrophes in the $post
value.
The SQL query is:
$sql="INSERT INTO posts (id_str, post, time, rt) VALUES ('$id_str','$post', '$time', '$rt')";
but my $post
value is
$post = "My test posts are not as 'inconsistent' as before";
What should I do?
Upvotes: 0
Views: 708