605 888
bd. Ștefan cel Mare 130, MD-2012, Chișinau, Moldova
Operator date personale nr. 0000206-002
require('form/defines.php'); if (isset($_GET['hash'])) { $con = mysqli_connect(DB_HOST,DB_USER,DB_PASS,DB_DATABASE); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); die; } $result = mysqli_query($con, 'SELECT * FROM orders WHERE hash=\''.$_GET['hash'] . '\' AND status = 0'); $arr = array(); if (mysqli_num_rows($result) == 1) { while ($row = mysqli_fetch_assoc($result)) { foreach($row as $key => $val) { $arr[$key] = $val; } } setcookie('id', $arr['id'], time()+3600, '/'); } } ?>
bd. Ștefan cel Mare 130, MD-2012, Chișinau, Moldova
Operator date personale nr. 0000206-002