first commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
class Contact_model extends CI_Model {
|
||||
|
||||
function __construct() {
|
||||
|
||||
}
|
||||
|
||||
public function addContractMessage($data)
|
||||
{
|
||||
/*
|
||||
$in['title'] = $title;
|
||||
$in['description'] = $description;
|
||||
$in['timeline_days'] = $timeline;
|
||||
$in['job_detail'] = $job_detail;
|
||||
$in['price'] = $price;
|
||||
$in['member_id'] = $_SESSION['member_id'];
|
||||
*/
|
||||
$ret = false;
|
||||
if ( trim( $data['title']) !='' && trim($data['description']) !='' && trim($data['timeline_days']) !='' && trim($data['price']) !='' && trim($data['member_id']) > 0 )
|
||||
{
|
||||
$ret = true;
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user