I make a script for the digiseller system, there is a site on which there is already a certain user base, here’s the script itself:
<?php $data = $HTTP_RAW_POST_DATA;//Данные с xml-запроса preg_match("|<email>(.*)</email>|sei", $data, $email);//Получаем почту $mysqli = new mysqli(...); if (mysqli_connect_errno()) { printf("Не удалось подключиться: %s\n", mysqli_connect_error()); exit(); } $stmt = $mysqli->prepare("UPDATE users SET group = 'USERS,VIP' WHERE email = ?"); $stmt->bind_param("s", $email[1]); $stmt->execute(); $stmt->close(); $mysqli->close(); ?>
But for some reason the script does not work, is it also possible in this case to use the 'xmlrpc_encode' function. Perhaps the reason is in quotes? 'USERS,VIP'
Request format:
<request> <id>1976637</id> <inv></inv> <amount></amount> <type_curr></type_curr> <sign></sign> <fio></fio> <email></email> <key></key> </request>