wm DB dbs query SELECT FROM billing_wm WHERE id_us array id fetch echo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
$wm = DB :: $dbs -> query ("SELECT * FROM `billing_wm` WHERE `id_us`=?", array ($u['id']))->fetch();
echo '<div class="menu2">Реквизиты ' . $u['nick'] . ':</div>';
if ($us['level']>1) {
if (isset ($_GET['wmid'])) {
DB :: $dbs -> query ("UPDATE `billing_wm` SET `type` = ? WHERE `id_us` = ? ",array (1,$number['us']));
header ('location: /us' . $u['id']);
}
echo '<a href="/us' . $u['id'] . '?wmid" class="block"><img src="'.$img.'" alt="*"/> Подтвердить WMID</a></div>';
}
if($wm['wmid'] == NULL){
echo '<div class="error">WMID не заполнен! Не рекомендуем проводить денежные операции! </div>';
} else {
echo '<div class="lst">
» WMID: <a href="https://passport.webmoney.ru/asp/certView.asp?wmid='.$wm['wmid'].'">'.$wm['wmid'].' </a> [<b>'.($wm['type']==0?'<font color="red">Не подтвержден</font>':'<font color="green">Подтвержден</font>').'</b>]<br/>
» BL <img src="http://stats.wmtransfer.com/Levels/pWMIDLevel.aspx?wmid='.$wm['wmid'].'&w=35&h=18&bg=0XFFFFFF" /><br/>
» Претензии/Отзывы: <img src="http://arbitrage.webmoney.ru/xml/AL.aspx?wmid='.$wm['wmid'].'" /><br/>
» WMR: <a href="http://search.wmtransfer.com/?w=w&q=R'.$wm['wmr'].'">'.$wm['wmr'].'</a></div>';
}