I have a data entry form that stores data into a mysql database. The problem I have is if someone enters a quote (' or ") into the field, it breaks my code.
mysql_query("insert into tasks(item,priority,status,accountable,review,notes,creator) values('$item', '$priority', '$status1', '$accountable', '$review','$notes','$user')");
How are you supposed to deal with quotes? Is there a best practice method?
Thanks,
Jon