Hi, my first attempt at pdo, will someone tell me where I went astray? -------------------------------------------------------------------------- the code: PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, PDO::ATTR_EMULATE_PREPARES => false, ]; try { $pdo = new PDO($dsn, $user, $pass, $options); } catch (\PDOException $e) { throw new \PDOException($e->getMessage(), (int)$e->getCode()); } echo " ";echo date('m/d/y');echo " "; $tenant=$_POST['tenant']; $unit=$_POST['unit']; $amtpaid=$_POST['amtpaid']; $hudpay=$_POST['hudpay']; $datepaid=$_POST['datepaid']; $amtpaid='amtpaid'; $amtdue='amtdue'; $hudpay='hudpay'; $prevbal='prevbal'; $latechg='latechg'; $datepaid='datepaid'; $stmt = $pdo->query('SELECT tenant, unit, amtpaid, amtdue, hudpay, prevbal, latechg, datepaid FROM paytbl'); while ($row = $stmt->fetch()) { echo $row['tenant'] .
https://www.bleepingcomputer.com/forums/t/783106/need-help-with-pdo/#bleepingcomputer