1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
|
$sql = "SELECT * FROM {$this->table_prefix}pflicht ";
$result = $this->db->sql_query($sql);
$pflichtabfragen = $this->db->sql_fetchrow($result);
$pflichton_off = $pflichtabfragen['id'];
$pflicht_wohin = $pflichtabfragen['idwohin'];
$pflicht_userid = $this->user->data['user_id'];
if ($pflicht_userid >= 2 && $pflichton_off == 1 )
{
$sql = 'SELECT * FROM ' . USERS_TABLE . ' WHERE `user_id` = ' . $pflicht_userid . ' ';
$result = $this->db->sql_query($sql);
$pflicht = $this->db->sql_fetchrow($result);
$pflichtgo= $pflicht['go'];
}
|