$dbhost = "localhost"; $dbuser = "madeintheusa"; $dbpass = "1qazxsw23edcvfr4"; $dbname = "madeintheusa"; // End changes here $db = new mysqli($dbhost, $dbuser, $dbpass, $dbname); // For compatibility of older PHP if (mysqli_connect_error()) { die('Connect Error (' . mysqli_connect_errno() . ') ' . mysqli_connect_error()); } ?> session_start(); ?>
if ($title == "") { $title = "Made in the USA | Be American. Buy American."; } if ($metadesc == "") { $metadesc = ""; } function limitString($string, $limit = 45) { if(strlen($string) < $limit) {return $string;} $regex = "/(.{1,$limit})\b/"; preg_match($regex, $string, $matches); return $matches[1]."..."; } ?>