当前位置:首页 » 服务器技术
开发技术指南» 文章正文
    引言: <? //+-----------------------
 

 

 ·asp中轻松实现变量名-值变换    »显示摘要«
    摘要:  用过php的朋友都知道,php中变量的使用灵活方便,特别是能在字符串中方便实现变量名-值变换,使得整个php代码更显简洁优美。比如一条更新数据库的sql语句只需写成:"update users set password=´$password´, group=$group, name=´$username´ where account=´$account´",其中......
    摘要:第十七章 委托 一、 委托的使用 静态委托和实例委托,使用方法类似,这里给出一个使用可变参数委托的例子: using system; public class delcls { public delegate void deldef(params string[] strparams); public static void calldel(deldef dd) { if(dd != null) //请务必在此处进行判断,这是个好习惯 { dd(&quo......


超酷PHP饼图
<?

//+------------------------+ 【相关文章:动态发布站点的并发访问升级简易方案

【扩展阅读:c#中int 转string 16进制和

//| pie3dfun.php//公用函数 | 【扩展信息:[原创]汇编扫盲帖1

//+------------------------+

define("angle_step", 5);    //定义画椭圆弧时的角度步长

function draw_getdarkcolor($img,$clr)    //求$clr对应的暗色

{

    $rgb    =    imagecolorsforindex($img,$clr);

    return array($rgb["red"]/2,$rgb["green"]/2,$rgb["blue"]/2);

}

function draw_getexy($a, $b, $d)    //求角度$d对应的椭圆上的点坐标

{

    $d        =    deg2rad($d);

    return array(round($a*cos($d)), round($b*sin($d)));

}

function draw_arc($img,$ox,$oy,$a,$b,$sd,$ed,$clr)    //椭圆弧函数

{

    $n                    =    ceil(($ed-$sd)/angle_step);

    $d                    =    $sd;

    list($x0,$y0)        =    draw_getexy($a,$b,$d);

    for($i=0; $i<$n; $i++)

    {

        $d                =    ($d+angle_step)>$ed?$ed:($d+angle_step);


...   下一页
    摘要:使用oledbcommand对象更新sql server中的二进制文件 作者 朱二 利用ado.net中的oledbconnection\oledbcommand 可以方便的对sql server中的二进制文件进行更新操作,下面是详细的代码演示演示环境:数据库机器名 :s_test登陆名 :sa密码 :7890数据库名 db_test下面建立一个表: create table tb_test(id int identity(1,1),photo image......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE