Call to a member function find() on a non-object when inserting data using PHP mySQL simpleHTMLDOM
问题 I have a script that parses certain elements from a webpage and stores them in a mysql db. Everything works fine until I try to split an element and store the resulting data into the db. Any ideas what might be wrong? Here's the page I'm parsing: http://www.ratemyprofessors.com/SelectTeacher.jsp?sid=953 Here's my code: <?php include('simple_html_dom.php'); //connect to db (code emitted) prof_List("http://www.ratemyprofessors.com/SelectTeacher.jsp?sid=953"); function prof_name($url) { //