本文整理汇总了PHP中client::insertOrder方法的典型用法代码示例。如果您正苦于以下问题:PHP client::insertOrder方法的具体用法?PHP client::insertOrder怎么用?PHP client::insertOrder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类client
的用法示例。
在下文中一共展示了client::insertOrder方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: client
</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");
//
// $mail->SetFrom($email, 'First Last');
//
//// $mail->AddReplyTo("name@yourdomain.com", "First Last");