UEditor 编辑器如何嵌入php网页 5
<?phprequire_once('Connections/bbs.php');?><?phpif(!function_exists("GetSQLValueStrin...
<?php require_once('Connections/bbs.php'); ?><?phpif (!function_exists("GetSQLValueString")) {function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $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 . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue;}}
$editFormAction = $_SERVER['PHP_SELF'];if (isset($_SERVER['QUERY_STRING'])) { $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { $insertSQL = sprintf("INSERT INTO bbs_ref (bbs_main_ID, bbs_ref_time, bbs_ref_content) VALUES (%s, %s, %s)", GetSQLValueString($_POST['bbs_main_ID'], "int"), GetSQLValueString($_POST['bbs_ref_time'], "text"), GetSQLValueString($_POST['bbs_ref_content'], "text"));
mysql_select_db($database_bbs, $bbs); $Result1 = mysql_query($insertSQL, $bbs) or die(mysql_error());
$insertGoTo = "admin.php"; if (isset($_SERVER['QUERY_STRING'])) { $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?"; $insertGoTo .= $_SERVER['QUERY_STRING']; } header(sprintf("Location: %s", $insertGoTo));} $bbs_main_ID=strval($_GET['bbs_ID']);?><!doctype html><html><head><meta charset="utf-8">
运行完上面的代码后,网页效果就是这样了,哪位高手帮我写个代码,把 ueditor 编辑器 嵌入到本回复页面的代码中,本人新手,最好能提供完整代码,我直接复制!万分感谢 展开
$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 . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue;}}
$editFormAction = $_SERVER['PHP_SELF'];if (isset($_SERVER['QUERY_STRING'])) { $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { $insertSQL = sprintf("INSERT INTO bbs_ref (bbs_main_ID, bbs_ref_time, bbs_ref_content) VALUES (%s, %s, %s)", GetSQLValueString($_POST['bbs_main_ID'], "int"), GetSQLValueString($_POST['bbs_ref_time'], "text"), GetSQLValueString($_POST['bbs_ref_content'], "text"));
mysql_select_db($database_bbs, $bbs); $Result1 = mysql_query($insertSQL, $bbs) or die(mysql_error());
$insertGoTo = "admin.php"; if (isset($_SERVER['QUERY_STRING'])) { $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?"; $insertGoTo .= $_SERVER['QUERY_STRING']; } header(sprintf("Location: %s", $insertGoTo));} $bbs_main_ID=strval($_GET['bbs_ID']);?><!doctype html><html><head><meta charset="utf-8">
运行完上面的代码后,网页效果就是这样了,哪位高手帮我写个代码,把 ueditor 编辑器 嵌入到本回复页面的代码中,本人新手,最好能提供完整代码,我直接复制!万分感谢 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询