2146
Vývoj / Re:PHP mysqli_query nic nevrátí
« kdy: 16. 10. 2014, 10:12:51 »
Varianta 1:
Varianta 1:
Kód: [Vybrat]
$select = $pdo->prepare("SELECT type, inside FROM configuration WHERE ID = :id");
$select->bindParam(':id', $id, PDO::PARAM_INT);
// execute QUERY
$select->execute();
$cabinet = $select->fetch(PDO::FETCH_ASSOC 8));
echo $cabinet["type"]. " " . $cabinet["inside"];Varianta 1:
Kód: [Vybrat]
$select = $pdo->prepare("SELECT type, inside FROM configuration WHERE ID = :id");
// execute QUERY
$args = array(':id' => $id);
$select->execute($args);
$cabinet = $select->fetch(PDO::FETCH_ASSOC 8));
echo $cabinet["type"]. " " . $cabinet["inside"];Takhle mu posilas to kterou skrin chces.