Parse error: syntax error, unexpected '[' in /ajax.php on line 13 si me da en la 13 creo que en la 23 también lo dara
Código PHP:
Ver original
<?php require '/kernel/inventario_config.php'; if($action == 'use') { $search = $mysqli->query("SELECT * FROM desc_placas WHERE badge_id = $_POST[badgeid]"); if(!$search->num_rows) { $result = ['context' => 'use_error']; } $badge = $search->fetch_assoc(); $search = $mysqli->query("SELECT * FROM users_placas WHERE badge_id = $_POST[badgeid]"); if(!$search->num_rows) { $result = ['context' => 'use_error']; } $search = $search->fetch_assoc();