pc6下载站:安全、高速、放心的专业下载站! pc6首页|软件分类pc6游戏网|pc6安卓网|pc6苹果网电脑版|精品模板|软件发布

所在位置:首页编程开发编程软件 → php+mysql代码生成器 1.0绿色免费版

php+mysql代码生成器

 1.0绿色免费版
  • 软件大小:122KB
  • 更新日期:2013/1/20
  • 软件语言:简体
  • 软件类别:编程软件
  • 软件授权:免费软件
  • 软件官网:
  • 适用平台:Vista, WinXP, Win7, WinAll

软件评分

PC6本地下载文件大小:122KB 高速下载需下载高速下载器,提速50%

    软件介绍精品推荐相关视频人气软件相关文章评论0下载地址

    为您推荐:编程软件

    php+mysql代码生成器做的内容就是剩掉你写sql语句的时间,把MakeCode.exe.config里的用名和密码改成你本地的!就可以简单的生成。

    相关软件软件大小版本说明下载地址

    php+mysql代码生成器做的内容就是剩掉你写sql语句的时间
    有显示,插入,修改,删除,还有显示的表格和添加修改的表单!
    下载后把MakeCode.exe.config里的用名和密码改成你本地的!就可以简单的生成!
    php+mysql代码生成器
    里面用到的mysql类,还有sql语句中的函数,都在其它代码中

    if($_POST['id']==''){

    //INSEART

    $InsertSQL = sprintf("INSEART INTO cuku_faqcat (`catname`,`list`,`cont`) VALUES (%s ,%s ,%s )",

    GetSQLValueString($_POST['catname'],"text"),

    GetSQLValueString($_POST['list'],"int"),

    GetSQLValueString($_POST['cont'],"text"));

    $db->query($InsertSQL);

    }else{

    //UPDATE

    $UpdateSQL = sprintf("UPDATE cuku_faqcat SET `catname`= %s, `list`= %s, `cont`= %s where `id`= %s)",

    GetSQLValueString($_POST['catname'] ,"text"),

    GetSQLValueString($_POST['list'] ,"int"),

    GetSQLValueString($_POST['cont'] ,"text"),

    GetSQLValueString($_POST['id'],"int"));

    $db->query($UpdateSQL); }

    //生成时用到的函数

    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") {

    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

    $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

    switch ($theType) {

    case "text":

    $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue != "") ? intval($theValue) : "NULL";

    break;

    case "double":

    $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";

    break;

    case "date":

    $theValue = ($theValue != "") ? "'" . $theValue . "'" : "now()";

    break;

    case "defined":

    $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;

    break;

    case "sqltable":

    $theValue = ($theValue != "") ? $theValue : die("NULL Table");

    break;

    }

    return $theValue;

    }

    //引入数据库类
    include"./mysql.php";
    //声明数据库
    $db = new Dirver();
    加上数据库类的写法!

    精品推荐

    下载地址

    • php+mysql代码生成器 1.0绿色免费版

      本地高速下载

    其他版本下载

    相关视频

      没有数据

    人气软件

    厂商其他下载

    电脑版安卓版IOS版Mac版

    查看所有评论>>网友评论0

    发表评论

    您的评论需要经过审核才能显示

    精彩评论

    最新评论

    热门关键词