// retrieve selected results from database and display them on page
$sql = 'SELECT * FROM publicaciones LIMIT ' . $this_page_first_result . ',' . $results_per_page;
$result = mysqli_query($conexion, $sql);
while ($row = mysqli_fetch_assoc($result)) {
$sqlP = "SELECT * FROM coleccionPublicaciones WHERE id_publicacion='.$row["id_publicacion"].' LIMIT 1";
$resultP = mysqli_query($conexion, $sqlP);
I have this code where on the line: $sqlP = "SELECT * FROM coleccionPublicaciones WHERE id_publicacion='.$row["id_publicacion"].' LIMIT 1";
I get the following error:
Parse error: syntax error, unexpected '"', expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in ...
The fact is that I do not see any errors in quotes or anything. I hope someone can help me, greetings.