Please enable JavaScript.
Coggle requires JavaScript to display documents.
MYSQLI (transakcije (autoinkrement (radi (svakako), baza), $mysqli->…
MYSQLI
-
-
unos
$mysqli->real_query("insert into korisnici values (null,'moje ime')");
-
-
preuzimanje
baferovano
store_result()
$mysqli->real_query("SELECT * FROM korisnici");
$r=$mysqli->store_result();
while($niz = $r->fetch_array())
echo "Id: " . $niz["id"] . " Ime:" . $niz["ime"] . "<br>";
-
-
-
priprema
$stmt = $mysqli->prepare("insert into korisnici values (null,?)");
$ime = "Ivan";
$stmt->bind_param("s", $ime);
$stmt->execute();
$stmt->close();
lista
$stmt = $mysqli->prepare("insert into korisnici values (null,?,?,?)");
$stmt->bind_param("ssi", $ime,$prezime,$godinaRodjenja);
-
kreiranje
$mysqli = new mysqli("localhost", "root", "", "mojabaza");
-
-