本文整理汇总了PHP中client::addClient方法的典型用法代码示例。如果您正苦于以下问题:PHP client::addClient方法的具体用法?PHP client::addClient怎么用?PHP client::addClient使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类client
的用法示例。
在下文中一共展示了client::addClient方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addOrder
function addOrder()
{
if ($_POST['cl_id'] < 0) {
$client = new client();
$client->addClient();
$client->existClient();
}
$ord_cl_id = $_POST['cl_id'];
$ord_bike = $_POST['ord_bike'];
//$ord_start_job = strtotime($_POST['ord_date_start']);
$ord_start_job = $_POST['ord_date_start'];
$ord_internal_note = $_POST['ord_internal_note'];
$query = "INSERT INTO `order`(`ord_cl_id`,`ord_bike`,`ord_start_job`,`ord_internal_note`) \n\t\t\t\t\t\t\tVALUES ('{$ord_cl_id}','{$ord_bike}', STR_TO_DATE('{$ord_start_job}','%d.%m.%Y'),'{$ord_internal_note}')";
$database = new database();
$database->dbQuery($query);
//return $query;
return $_POST['cl_id'];
}
示例2: client
</div>
<span><input type="submit" name="addorder" class="mybutton" value="ارسال"></span>
</div>
</form>
<?php
if (isset($_POST['addorder']) && $_POST['addorder'] != '') {
$name = secure_variable($_POST['userName']);
$email = secure_variable($_POST['userEmail']);
$phone = secure_variable($_POST['userPhone']);
$message = secure_variable($_POST['userMsg']);
$attach = $_FILES['image']['name'];
if (isset($attach)) {
move_uploaded_file($_FILES['image']['tmp_name'], 'admin/order_img/' . $attach);
}
$client = new client();
$addClient = $client->addClient($con, $name, $email, $phone);
$last_insert_id = mysqli_insert_id($con);
if ($addClient == 'done') {
$contact = $client->insertOrder($con, $message, $last_insert_id);
if ($contact == 'done') {
echo 'تم الارسال';
// require_once('classes/class.phpmailer.php');
//
// $mail = new PHPMailer();
//
// $mail->IsSendmail(); // telling the class to use SendMail transport
//// $body = file_get_contents('contents.html');
// $body = eregi_replace("[\]", '', $body);
//
// $mail->AddReplyTo("dev.abdallah.ragab@gmail.com", "First Last");
//