Ok, then here is my new code:
Code: Select all
$headshot = mysqli->real_escape_string($_POST['headshot']);
$logo = mysqli->real_escape_string($_POST['logo']);
$website = mysqli->real_escape_string($_POST['website']);
$phone = mysqli->real_escape_string($_POST['phone']);
$l_name = str_replace("-", "", ucwords(mysqli->real_escape_string($_POST['l_name'])));
$f_name = ucwords(mysqli->real_escape_string($_POST['f_name']));
$title = mysqli->real_escape_string($_POST['title']);
$company = mysqli->real_escape_string($_POST['company']);
$company_desc = mysqli->real_escape_string($_POST['company_desc']);
$address_1 = mysqli->real_escape_string($_POST['address_1']);
$address_2 = mysqli->real_escape_string($_POST['address_2']);
$city = mysqli->real_escape_string($_POST['city']);
$state = mysqli->real_escape_string($_POST['state']);
$zip = mysqli->real_escape_string($_POST['zip']);
$designation = mysqli->real_escape_string($_POST['designation']);
$service_category = mysqli->real_escape_string($_POST['service_category']);
$keywords = mysqli->real_escape_string($_POST['keywords']);
$company_desc = strip_tags(addparagraphs($company_desc), '<p><br/><br><b><i><ol><ul><li>');
$mysqli = new mysqli("localhost", "xxxxx", "xxxxx", "xxxxx");
$mysqli->query("INSERT INTO wp_network_members (level, headshot, logo, website, phone, l_name, f_name, title, company, company_desc, address_1, address_2, city, state, zip, designation, service_category, keywords) VALUES ('0', '$headshot', '$logo', '$website', '$phone', '$l_name', '$f_name', '$title', '$company', '$company_desc', '$address_1', '$address_2', '$city', '$state', '$zip', '$designation', '$service_category', '$keywords')");
Which gives me the following error:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/efarrell/public_html/wp-content/plugins/wp-members-pages/members_page.php on line 52
Line 52 is the first line in the code I posted ($headshot = ...). Any idea what I'm doing wrong here?