SQL Error - Escape String
Posted on 2011-02-18
I have a form that has been working great. It still works - person fills out the form, selects what pdf's they want. They submit - info stores in database, person gets an email with links to the pdf's and admin gets email saying which pdf's the person asked for.
Recently we have started getting this error
Warning: mysql_real_escape_string() expects parameter 2 to be resource, null given in /home/visitmit/public_html/moreinfo.php on line 230
and it repeats for other lines.
That line is mysql_real_escape_string($address, $link); and all other errors are the same line with their corresponding form field.