q("INSERT INTO `battle_unit` SET `author`= ".$_SESSION['user']['login']." AND SET `battle_id` = ".$_SESSION['unit_battle']."");
Составил условия sql и выходит ошибка (развернутый инфо из за debug_buctrace):
Mysqli_Error: INSERT INTO `battle_unit` SET `author`= evilgoogle AND SET `battle_id` = 8
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SET `battle_id` = 8' at line 1
Array
(
[0] => Array
(
[file] => Z:\home\3d_render.ru\www\module\battle\battle_unit.php
[line] => 3
[function] => q
[args] => Array
(
[0] => INSERT INTO `battle_unit` SET `author`= evilgoogle AND SET `battle_id` = 8
)
)
[1] => Array
(
[file] => Z:\home\3d_render.ru\www\Index.php
[line] => 13
[args] => Array
(
[0] => Z:\home\3d_render.ru\www\module\battle\battle_unit.php
)
[function] => include
)
)
_____________
Жадный.... жадный.... жадный кот