include_once 'db_config/db_inbox.php'; $sentmail = new sentmail(); $inboxmail = new inbox(); $to = $_REQUEST['to']; $gig_id = $_REQUEST['gig_id']; $user = new user(); $rs_user = $user->uniq_user_list('user_id', $_SESSION['user_id']); $data_user = mysql_fetch_array($rs_user); $rs_user_tomail = $user->uniq_user_list('user_name', 'sandip'); $data_user_tomail = mysql_fetch_array($rs_user_tomail); //echo $data_user_tomail['user_primary_email']; $gigs_obj = new gigs(); $rs_gigs = $gigs_obj->uniq_gigs_list('id', $gig_id); $data_gigs = mysql_fetch_array($rs_gigs); $rs_sentmail = $sentmail->uniq_sentmail_list('from_id', $_SESSION['user_id']); $rs_inbox = $inboxmail->uniq_inbox_list('from_id', $_SESSION['user_id']); if ($_REQUEST['submit']) { $data_senmail = array(); $data_senmail['gigs_id'] = $gig_id; $data_senmail['to'] = $data_user_tomail['user_primary_email']; $data_senmail['from'] = $data_user['user_primary_email']; $data_senmail['sub'] = $_REQUEST['subject']; $data_senmail['body'] = $_REQUEST['body']; $data_senmail['attachment'] = $_FILES['attachment']['name']; $data_senmail['date_time'] = date('y-m-d h:i:s'); $sentmail->dataInsert('ninerr_sentmail', $data_senmail); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>