??????????????? ??????????????? 0) { echo "Access Denied"; exit; } require_once('/home/andyrdhboardrevi/public_html/wp-content/themes/witalk/registration/includes/dbconnect.php'); $query = "select dru.*, dse.*, dss.seminar_id from dha_registered_user dru left join dha_seminars dss on dru.seminar_id=dss.seminar_id left join dha_emails dse on dru.seminar_id=dse.seminar_id where dru.name_id='".mysqli_real_escape_string($con,$_SESSION['userID'])."' and dru.seminar_id>0"; $rowQuery = mysqli_query($con,$query); if(mysqli_num_rows($rowQuery) > 0) {;}else{ $query = "select dru.*, dse.* from dha_registered_user dru left join dha_emails dse on dru.packageSelected=dse.seminar_id where dru.name_id='".mysqli_real_escape_string($con,$_SESSION['userID'])."' and dru.packageSelected>2"; $rowQuery = mysqli_query($con,$query); } if(mysqli_num_rows($rowQuery) > 0) { $data = mysqli_fetch_array($rowQuery); $txt = ''; if(!empty($data['message'])) { $data['message'] = stripslashes($data['message']); // replace variables $keys = array('[[Name]]','[[Firstname]]','[[Lastname]]','[[Address]]','[[City]]','[[State]]','[[Zip]]','[[HomePhone]]','[[WorkPhone]]','[[Email]]','[[School]]','[[SelectedCity]]','[[Fax]]','[[Date]]','[[Cost]]','[[PinNumber]]'); $vals = array($data['name'],$data['firstname'],$data['lastname'],$data['address']." ".$data['addresscont'],$data['city'],$data['zip'],$data['state'],$data['homeph'],$data['workph'],$data['email'],$data['school'],$data['selectedcity'],$data['fax'],date("m-d-Y",strtotime($data['date'])),$data['cost'],$data['dhsPinNumber']); $body = str_replace($keys,$vals,$data['message']); $body = str_replace("cid:image1","emailImageUploads/logo_final.png",$body); $body = str_replace("cid:image2","emailImageUploads/snap.png",$body); $body = str_replace("cid:image3","emailImageUploads/fb.png",$body); $body = str_replace("cid:image4","emailImageUploads/insta.jpeg",$body); $body = str_replace("cid:image5","emailImageUploads/fb.png",$body); $body = str_replace("cid:image6","emailImageUploads/pinterest.png",$body); $body = str_replace("cid:image7","emailImageUploads/twitter.png",$body); $txt = '
'; $txt .= $body; $txt .= '
'; } else { die('Confirmation Letter failure. Pls Try again !!'); } } else { die('Email cannot be loaded'); } ?> Confirmation Letter for <?php echo stripslashes($data['firstname']);?> <?php echo stripslashes($data['lastname']);?>, <?php echo $data['seminar_name'];?> Attendee