2 запроса
Добавлено: 2008-08-26 16:36:57
постоянно надо делать 2 запроса, в общем решил обеденить, но не получаеться что-то...
ругаеться на последнюю строку
Код: Выделить всё
my $sth = $dbh->prepare('SELECT t1.t,
t2.id
FROM s AS t1,
p AS t2
WHERE (t1.idnane = ? and t1.id = ? and)
(t2.idnane = ? and t2.ids = ?) limit 1 ');
my $sessionuser=$$session{'user'};
$sth->execute("$sessionuser,$siteselect,$sessionuser,$siteselect");
Код: Выделить всё
DBD::mysql::st execute failed: called with 1 bind variables when 4 are needed at index.pl line 1861.