本文整理汇总了PHP中connect::setdata方法的典型用法代码示例。如果您正苦于以下问题:PHP connect::setdata方法的具体用法?PHP connect::setdata怎么用?PHP connect::setdata使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类connect
的用法示例。
在下文中一共展示了connect::setdata方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: imagesavealpha
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;
}
示例2: LoadPNG
imagecopy($frame, $frame_overlay, 0, 0, 0, 0, 1200, 1200);
return $frame;
}
header('Content-Type: image/png');
$img = LoadPNG('img/frame-1.png');
imagepng($img, 'img/user/user.png');
imagedestroy($img);*/
include "dbcrud.php";
$db = new connect();
$db->connect_it("yoletsgo");
for ($i = 101; $i < 200; $i++) {
$db->setdata("INSERT INTO `yoletsgo`.`user_table` (`id`, `name`, `partner_name`, `age`, `email_address`, `phone_number`, `address`, `city`, `country`, `favourite_sport`, `reason`, `pic_name`) VALUES (NULL, 'User {$i}', 'User {$i} Partner', '24', 'user{$i}@test.com', '081234567891{$i}', 'User {$i} Address', 'User {$i} City', 'Unknown', 'Mini Soccer', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam qu', '5670eaay0wqpp_700b.jpg')");
}
/*include "dbcrud.php";
$db = new connect();
$db->connect_it("yoletsgo");
$user_data = array(
'users' => array(
)
);
$db->getdata("SELECT * FROM `user_table` ORDER BY `id` DESC");