<?php
$id=$_GET['id'];
$conn=mysql_connect("localhost","root","root");
mysql_select_db("yx",$conn);
mysql_query("set names utf8");
$sql="select * from pigcms_lottery where id='$id'";
$result=mysql_query($sql);
$arr=mysql_fetch_assoc($result);
//echo $arr['fist'];
//echo $arr['second'];
//echo $arr['third'];
//echo $arr['four'];
//echo $arr['five'];
//echo $arr['six'];
function hc1($content1,$content2,$content3,$content4,$content5,$content7){
/*打开图片*/
//1.配置图片路径
$src = "http://localhost/tpl/Wap/default/common/css/guajiang/images/bb.png";
//2.获取图片信息
$info = getimagesize($src);
//3.通过编号获取图像类型
$type = image_type_to_extension($info[2],false);
//4.在内存中创建和图像类型一样的图像
$fun = "imagecreatefrom".$type;
//5.图片复制到内存
$image = $fun($src);
$background = imagecolorallocate($image, 255, 255, 255);
imagecolortransparent($image, $background);
//imagealphablending($image, false);
imagesavealpha($image, true);
/*操作图片*/
//1.设置字体的路径
$font = "msyh.ttf";
//2.填写水印内容
$size=15;
//$content1 = "";
//3.设置字体颜色和透明度
$color = imagecolorallocatealpha($i