I am trying to make a form that takes the data from a table in phpmyadmin. It gives me error in the following code. Does anyone know the error?
<?php
if(isset($_GET["libro"])){
$resultado = mysqli_query($enlaceBD, "SELECT * FROM libros where id= row[$id]");
} else {
resultado = mysqli_query ($enlaceBD, "SELECT * FROM libros where id = '1'"];
}
$row = $resultado ->fetch_assoc();
{