Joseph Grogan
New Member
Hi everyone. Little Problem.....
I have a php form that submits data to a db. But if some one put in a ' sign it fecks up the code. I think Htmlentities can get me out of this but not sure how to use it.
I put this is the code into the part that displays the results of the db
But I dont know what to put in the part that a user submits data.
Hope that makes sense..
Thanks
I have a php form that submits data to a db. But if some one put in a ' sign it fecks up the code. I think Htmlentities can get me out of this but not sure how to use it.
I put this is the code into the part that displays the results of the db
PHP:
htmlentities($result_row[4])
But I dont know what to put in the part that a user submits data.
Hope that makes sense..
Thanks