Радиоволна
RSS
Профиль

bezumnoe.RU
Главная страница
Регистрация
Другие журналы
Форум
6
11/2007

foreach ($ids as $key=>$id)
{
    $ids[$key] = 'presence.id=' . $id;
}

$q = "select

presence.id as id,
presence.price as price_usd,
presence.ammount as amount,
details.name as name,
suppliers.time as time,
suppliers.curr_usd as curr_usd,
suppliers.country as country,
details.original_id as detail,
details.man_id as man_id,
details.weight as weight

from presence

inner join suppliers on presence.id_sup=suppliers.id

inner join details on presence.id_det=details.id

where " . implode (' or ', $ids);