// Social Media Pop Up - 1 of 3 Includes - Install on opt in form page at very top of page //include_once('_fb-twitter-01-top.php'); ?> session_start(); ?> $mobile = 'http://www.veghealth.com/jquery-mobile/mobile_veghealth_healthyeatingquiz.php'; include('_mobile-redirect.php'); ?> // Affiliate Redirect Handler - 1 of 1 Includes // Sets up redirect to PWC for tracking if this is an affiliate referral. $AddTracking = 'quiz'; // Page id to send to Aweber include_once('_affiliate-setup.php'); ?> // If count(errors) > 0 and HasErrors is true, then the user didn't enter required data. // If count(errors) > 0 and HasErrors is false, then the user already has data in the DB, or there was an error retrieving their information. $Errors = array(); $HasErrors = false; $UserExists = false; $ExistingID = ""; $link = mysql_connect("localhost", "tlevine_intake", "zdw~{)X@L!^%"); //$link = mysql_connect("localhost", "root", ""); if (!$link) { die('Could not connect: ' . mysql_error()); } @mysql_select_db("tlevine_intake"); //@mysql_select_db("interspire"); $query = "SELECT id FROM `healthyeating_quiz`"; $result = mysql_query($query) or die ("Error in query: $query. " . mysql_error()); $quizcount = mysql_num_rows($result); ?> include('_sessionmanagement.php'); ?>
// Only fire Facebook tracking pixel on the first page following a successful checkout if( isset($_GET['orderid']) AND $_GET['orderid'] != '' ){ ?> } else { print ''; };?> // Only fire this Facebook tracking pixel on the riches page following a successful checkout if( $PageType=='riches99x4'){ ?> };?> // Clear GA session vars since it's now been sent to tracking scripts if ($_SESSION['ga_id'] != '') { $_SESSION['ga_id'] = ''; $_SESSION['ga_name'] = ''; $_SESSION['ga_price'] = ''; };?>