本文整理汇总了PHP中connect::connect_it方法的典型用法代码示例。如果您正苦于以下问题:PHP connect::connect_it方法的具体用法?PHP connect::connect_it怎么用?PHP connect::connect_it使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类connect
的用法示例。
在下文中一共展示了connect::connect_it方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: imagealphablending
imagealphablending($frame_overlay, true);
imagesavealpha($frame_overlay, true);
$user_photo = imagecreatefromjpeg($GLOBALS["the_file"]);
$profile_image = imagecreatetruecolor(1000, 1000);
list($width, $height) = getimagesize($GLOBALS["the_file"]);
imagecopyresized($profile_image, $user_photo, 0, 0, 0, 0, 1000, 1000, $width, $height);
imagecopymerge($frame, $profile_image, 140, 150, 0, 0, 1000, 1000, 100);
imagecopy($frame, $frame_overlay, 0, 0, 0, 0, 1200, 1200);
return $frame;
}
$img = LoadPNG('img/' . $frameSelect . '.png');
imagepng($img, 'img/user/' . $foto . '.png');
imagedestroy($img);
include "dbcrud.php";
$db = new connect();
$db->connect_it("yoletsgo");
$db->setdata("INSERT INTO `user_table` (`id`, `name`, `partner_name`, `age`, `email_address`, `phone_number`, `address`, `city`, `country`, `favourite_sport`, `reason`, `pic_name`) VALUES (NULL, '{$name}', '{$partnerName}', '{$age}', '{$emailAddress}', '{$phoneNumber}', '{$address}', '{$city}', '{$country}', '{$favouriteSport}', '{$reason}', '{$foto}');");
}
switch ($step) {
case 1:
$pages = "register.php";
break;
case 2:
$pages = "upload.php";
break;
case 3:
$pages = "done.php";
break;
default:
$pages = false;
break;