Voll Upload SGD Fachinformatiker PHP
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
include("list.php");
|
||||
|
||||
try {
|
||||
$pdo = new PDO("mysql:dbname=$dbname;dbhost=$dbhost;charset=utf8", $dbuser, $dbpw);
|
||||
} catch (PDOException $e) {
|
||||
die($e->getMessage());
|
||||
}
|
||||
|
||||
$tnummer = 5;
|
||||
|
||||
$sql = "SELECT * FROM teilnehmer WHERE tnummer= ?";
|
||||
|
||||
if ($stmt = $pdo->prepare($sql)) {
|
||||
$stmt->execute(array($tnummer));
|
||||
}
|
||||
|
||||
|
||||
var_dump($stmt)
|
||||
?>
|
||||
Reference in New Issue
Block a user