
Oto kod:
<?php try { $db = new PDO('mysql:host=localhost;dbname=furiosmt2;charset=utf8', 'root', 'xxx'); $sql = "SELECT status FROM kody WHERE kod = 1234567890123"; $result = $conn->query($sql); $f = $q->fetch(); $result = $f['status']; } catch(PDOException $e) { } ?>
A to phpmyadmin:
