Please enable JavaScript.
Coggle requires JavaScript to display documents.
PDO (prepared (statement, $upit = $pdo->prepare("insert into…
PDO
prepared
-
$upit = $pdo->prepare("insert into korisnici values (null,:ime)");
$ime="petar";
$upit->bindParam(":ime",$ime);
$upit->execute();
-
-
-
$pdo = new PDO("mysql:host=localhost;dbname=test", "root", "");
-
-
-
fetch
-
-
$asNiz = $rez->fetchAll(PDO::FETCH_ASSOC); foreach($asNiz as $k=>$v)
echo "Red: " . $k . " id: " . $v["id"] . " Ime: " .
$v["ime"] . "<br>";
-
-
-
aktivacija
$pdo->exec("insert into korisnici values (null,'petar')");
-
-
-