'; } elseif ($event_type=="Birthday" or $event_type=="Baby Shower" or $event_type=="Baby Ceremony" or $event_type == "Others") { $sqlwedding = mysqli_query($con, "select * from others where event_uid = '$event_uid'"); $row_ink=mysqli_fetch_array($sqlwedding); $firstname = $row_ink['firstname']; $lastname = $row_ink['lastname']; $profile_pic = $row_ink['profile_pic']; echo ' '.$firstname.' '.$lastname.' Gift Registry | Event Website & More '; } }else{ echo' Palmfront - Gift Registry | Event Website & More '; } ?>

Update successful '; } if(isset($_POST['transfer'])){ $email = $_POST["email"]; $event_uid = $_POST["event_uid"]; $info_update_query = mysqli_query($con, "UPDATE events SET username ='$email' where event_uid = '$event_uid'"); $sql = mysqli_query($con, "select * from weddings where event_uid = '$event_uid'"); $usercount = mysqli_num_rows($sql); if ($usercount==1){ $info_update_query = mysqli_query($con, "UPDATE weddings SET username ='$email' where event_uid = '$event_uid'"); } $sqlz = mysqli_query($con, "select * from gift_registry where event_uid = '$event_uid'"); $usercountz = mysqli_num_rows($sqlz); if ($usercountz==1){ $info_update_query = mysqli_query($con, "UPDATE gift_registry SET username ='$email' where event_uid = '$event_uid'"); } $sqlv = mysqli_query($con, "select * from album where event_uid = '$event_uid'"); $usercountv = mysqli_num_rows($sqlv); if ($usercountv==1){ $info_update_query = mysqli_query($con, "UPDATE album SET username ='$email' where event_uid = '$event_uid'"); } $sqls = mysqli_query($con, "select * from website where event_uid = '$event_uid'"); $usercounts = mysqli_num_rows($sqls); if ($usercounts==1){ $info_update_query = mysqli_query($con, "UPDATE website SET username ='$email' where event_uid = '$event_uid'"); } $sqla = mysqli_query($con, "select * from others where event_uid = '$event_uid'"); $usercounta = mysqli_num_rows($sqla); if ($usercounta==1){ $info_update_query = mysqli_query($con, "UPDATE others SET username ='$email' where event_uid = '$event_uid'"); } echo ' '; } ?> Oops!!! You have already gotten a gift '; }else{ mysqli_query($con, "INSERT INTO gifts (email, gift, uid, date) VALUES ('$email','$gift','$gift_uid','$todate')"); $to = "noreply@palmfront.com"; $subject = "Congrats!!!You have Won a Gift on Palmfront"; // message $message = "

Hi,

You have won ".$gift." on Palmfront.

Confirmation Code - ".$gift_uid.".

We would be in touch shortly.

Cheers

Palmfront Team

"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'From: Palmfront ' . "\r\n"; $headers .= 'Bcc: '.$email.'' . "\r\n"; // Mail it if (mail($to, $subject, $message, $headers)){ echo ' '; } } } ?> window.open('coupledetails?event=$event_uid','_self')"; }elseif ($event_type=="Birthday" or $event_type=="Baby Shower" or $event_type=="Baby Ceremony" or $event_type == "Others") { echo ""; } }else{ $sqle = mysqli_query($con, "select * from events where username = '$username'"); $eventcount = mysqli_num_rows($sqle); if ($eventcount >= 1){ echo' '; }else{ mysqli_query($con, "INSERT INTO events (username, event_type,event_uid,views,visibility, date) VALUES ('$username','$event_type','$event_uid','0','$event_status','$todate')"); if($event_type=="Wedding" or $event_type=="Wedding Anniversary"){ echo ""; }elseif ($event_type=="Birthday" or $event_type=="Baby Shower" or $event_type=="Baby Ceremony" or $event_type == "Others") { echo ""; } } } }else{ $sqle = mysqli_query($con, "select * from events where username = '$username'"); $eventcount = mysqli_num_rows($sqle); if ($eventcount >= 1){ echo' '; }else{ mysqli_query($con, "INSERT INTO events (username, event_type,event_uid,views,visibility, date) VALUES ('$username','$event_type','$event_uid','0','$event_status','$todate')"); if($event_type=="Wedding" or $event_type=="Wedding Anniversary"){ echo ""; }elseif ($event_type=="Birthday" or $event_type=="Baby Shower" or $event_type=="Baby Ceremony" or $event_type == "Others") { echo ""; } } } } ?> window.open('toolselect?event=$event_uid','_self')"; $nOldErrorReporting = error_reporting(E_ALL & ~(E_WARNING)); // ingore warnings $src= @imagecreatefromjpeg("images/couples/$attachment"); list($width, $height) = @getimagesize ("images/couples/$attachment"); $newwidth = 200; $newheight = ($height / $width) * ($newwidth); $tmp = imagecreatetruecolor($newwidth, $newheight); imagecopyresampled($tmp, $src, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); @imagejpeg($tmp, "images/couples/resize/$attachment" , 100); imagedestroy($src); imagedestroy($tmp); $nOldErrorReporting = error_reporting(E_ALL & ~(E_WARNING)); // ingore warnings $src= @imagecreatefromjpeg("images/couples/$attachment"); list($width, $height) = @getimagesize ( "images/couples/$attachment" ); $newwidth = 200; $newheight = ($height / $width) * ($newwidth); $tmp = imagecreatetruecolor($newwidth, $newheight); imagecopyresampled($tmp, $src, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); @imagejpeg($tmp, "images/couples/resize/thumbnail/$attachment" , 100); $image = @imagecreatefromjpeg("images/couples/resize/thumbnail/$attachment"); $tmp_width = 200; $tmp_height = 200; $width = imagesx($image); $height = imagesy($image); $original_aspect = $width / $height; $tmp_aspect = $tmp_width / $tmp_height; if ( $original_aspect >= $tmp_aspect ){ // If image is wider than thumbnail (in aspect ratio sense) $new_height = $tmp_height; $new_width = $width / ($height / $tmp_height); } else{ // If the thumbnail is wider than the image $new_width = $tmp_width; $new_height = $height / ($width / $tmp_width); } $tmp = imagecreatetruecolor( $tmp_width, $tmp_height ); // Resize and crop imagecopyresampled($tmp, $image, 0 - ($new_width - $tmp_width) / 2, // Center the image horizontally 0 - ($new_height - $tmp_height) / 2, // Center the image vertically 0, 0, $new_width, $new_height, $width, $height); @imagejpeg($tmp, "images/couples/resize/thumbnail/cropped/$attachment", 100); imagedestroy($src); imagedestroy($tmp); } } ?> window.open('toolselect?event=$event_uid','_self')"; $nOldErrorReporting = error_reporting(E_ALL & ~(E_WARNING)); // ingore warnings $src= @imagecreatefromjpeg("images/others/$attachment"); list($width, $height) = @getimagesize ("images/others/$attachment"); $newwidth = 200; $newheight = ($height / $width) * ($newwidth); $tmp = imagecreatetruecolor($newwidth, $newheight); imagecopyresampled($tmp, $src, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); @imagejpeg($tmp, "images/others/resize/$attachment" , 100); imagedestroy($src); imagedestroy($tmp); $nOldErrorReporting = error_reporting(E_ALL & ~(E_WARNING)); // ingore warnings $src= @imagecreatefromjpeg("images/others/$attachment"); list($width, $height) = @getimagesize ( "images/others/$attachment" ); $newwidth = 200; $newheight = ($height / $width) * ($newwidth); $tmp = imagecreatetruecolor($newwidth, $newheight); imagecopyresampled($tmp, $src, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); @imagejpeg($tmp, "images/others/resize/thumbnail/$attachment" , 100); $image = @imagecreatefromjpeg("images/others/resize/thumbnail/$attachment"); $tmp_width = 200; $tmp_height = 200; $width = imagesx($image); $height = imagesy($image); $original_aspect = $width / $height; $tmp_aspect = $tmp_width / $tmp_height; if ( $original_aspect >= $tmp_aspect ){ // If image is wider than thumbnail (in aspect ratio sense) $new_height = $tmp_height; $new_width = $width / ($height / $tmp_height); } else{ // If the thumbnail is wider than the image $new_width = $tmp_width; $new_height = $height / ($width / $tmp_width); } $tmp = imagecreatetruecolor( $tmp_width, $tmp_height ); // Resize and crop imagecopyresampled($tmp, $image, 0 - ($new_width - $tmp_width) / 2, // Center the image horizontally 0 - ($new_height - $tmp_height) / 2, // Center the image vertically 0, 0, $new_width, $new_height, $width, $height); @imagejpeg($tmp, "images/others/resize/thumbnail/cropped/$attachment", 100); imagedestroy($src); imagedestroy($tmp); } } ?> window.open('giftregistry?event=$event_uid','_self')"; } ?> window.open('sitedashboard?event=".$event_uid."','_self')"; }else{ echo' '; } }else{ echo' '; } } ?>

Event Planning Tools

Create digital experience for your event

Gift Registry | Event Website & More

Event Planning Has Never Been Easier

Weddings, Birthdays, Anniversaries

What our couples say

Check out these testimonials from real Palmfront couples.
Palmfront
Palmfront.com is an online event management system that helps event planners and event owners add digital experience to their events. We offer services like gift registry, cloud album manager & event website builder e.t.c.
© 2015 - 2022 Palmfront. All right reserved