本文整理汇总了PHP中DB_Functions::createEntry方法的典型用法代码示例。如果您正苦于以下问题:PHP DB_Functions::createEntry方法的具体用法?PHP DB_Functions::createEntry怎么用?PHP DB_Functions::createEntry使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DB_Functions
的用法示例。
在下文中一共展示了DB_Functions::createEntry方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
echo json_encode($response);
} else {
$response = array("error" => TRUE, "error_msg" => "whatcha doin?");
}
} else {
if ($tag == "create") {
if (isset($_POST['uid']) && $_POST['uid'] != '' && isset($_POST['name']) && $_POST['name'] != '' && isset($_POST['icon']) && $_POST['icon'] != '' && isset($_POST['event']) && $_POST['event'] != '' && isset($_POST['creator']) && $_POST['creator'] != '') {
$uid = $_POST['uid'];
$name = $_POST['name'];
$icon = $_POST['icon'];
$time = $_POST['event'];
$creator = $_POST['creator'];
require_once 'include/DB_Functions.php';
$db = new DB_Functions();
$response = array("error" => FALSE);
$success = $db->createEntry($uid, $name, $icon, $time, $creator);
if (!$success) {
$response["error"] = TRUE;
}
echo json_encode($response);
} else {
$response = array("error" => TRUE, "error_msg" => "whatcha doin?");
echo json_encode($response);
}
} else {
$response = array("error" => TRUE, "error_msg" => "whatcha doin?");
echo json_encode($response);
}
}
} else {
$response = array("error" => TRUE, "error_msg" => "whatcha doin?");