PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- function pars_xml () {
- $req = $_POST['xml'];
- //mysql_query("INSERT INTO tb_room SET Login='$req',Time='$servertime',user_type='unregistered',Room='$select_room' ");
- //$req = '<xml><bot login="BOT2" select_room="гогого" id_unreg_user="">SharaBot</bot></xml>';
- $xml = new SimpleXmlIterator ($req);
- foreach ($xml as $bot)
- {
- $select_room = $bot['select_room'];
- $login = $bot['login'];
- mysql_query("INSERT INTO tb_room SET Login='$bot',Time='$servertime',user_type='unregistered',Room='$select_room' ");
- }
- }