赵城藏软件站:安全、绿色、放心的软件下载站 首页|软件发布|专题集合|站内导航

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

官方
  • 大小:122KB
  • 评分:💗💗💗
  • 语言:简体中文
  • 类别:编程软件
  • 授权:免费版
  • 插件情况:无插件请放心使用
  • 软件官网:未知官网
  • 平台:Vista, WinXP, Win7, WinAll
  • 备案号:
  • 更新日期:2022-04-10 00:11:42
  • 软件厂商:
安全检测:

网友评分:10

好评10 差评0
软件介绍 人气软件 相关文章 下载地址 用户评论

 

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绿色免费版

下载地址:

  • 通用网络下载
  • 通用网络下载
有问题?不能下载,

部分文件为zip、rar等压缩格式,请下载360压缩进行解压

用户评论
所有评论
昵称:
(您的评论需要经过审核才能显示)