I've read a number of threads to try and solve this problem, I have a query string link the one below
and if there are any single quotes or apostrophes ' the database does not update.
I dont seem to be able to find a solution for this. Can anyone help with a definitive answer?
Thanks
Code:
$insert = "insert into accounts values ('$accountid',NOW(),'','','','website','$company_name','','Student: Student/Graduate Member','','$turnover','$tel3','$home_address1 $home_address2','$home_city','$home_county','$home_postcode','United Kingdom','$statement','','$tel4','','$email','','$website','','$employees','','','$term_address1 $term_address2','$term_city','$term_county','$term_postcode','United Kingdom','0')";
and if there are any single quotes or apostrophes ' the database does not update.
I dont seem to be able to find a solution for this. Can anyone help with a definitive answer?
Thanks