Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function insert($Resource)
- {
- if (empty($Resource->id)) {
- $Resource->id = $this->getId($this->table[0]);
- }
- $lsQuery = "INSERT
- INTO {$this->table[0]}
- (
- `id`,
- `resource`,
- `part`,
- `period`,
- `date`,
- `year`,
- `month`,
- `day`,
- `time`,
- `user`
- )
- VALUES
- (
- '{$Resource->id}',
- '{$Resource->resource}',
- '{$Resource->part}',
- '{$Resource->period}',
- '{$Resource->date}',
- '{$Resource->year}',
- '{$Resource->month}',
- '{$Resource->day}',
- '{$Resource->time}',
- '{$Resource->user}'
- )";
- $this->simpleQuery($lsQuery);
- return $Resource->id;
- // return $this->id;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement