I've done a php to list the rooms, but I'm having difficulty listing them, if anyone can help me, I would appreciate it.
<?php
$link = mysqli_connect("localhost","root","","hotel");
$result = mysqli_query("SELECT descricao FROM quartos WHERE nome_quarto=Quarto Ibiza");
$row = mysqli_fetch_array($result);
?>
<table class="table table-bordered">
<tr>
<th class="tg-031e" colspan="3"></th>
</tr>
<tr>
<td class="tg-031e"><img src="fotos/ibiza.jpg" height="300px"></td>
<td class="tg-031e">
<b><font size="5px" color="black">Descrição:</font></b>
<p><font color="black" size="3px">
<!-- Mostrar os dados que fui buscar ao select -->
<?php
echo $row['descricao'];
?>
</p></font>
<button type="submit" id="button1id" name="button1id" style="border:3px double black;" class="btn btn-primary" >Reservar</button>
</td>
</tr>
</table>
Errors:
Warning: mysqli_query () expects at least 2 parameters, 1 given in F: \ XAMPP \ htdocs \ Pap2 \ bedrooms.php on line 67
Warning: mysqli_fetch_array () expects parameter 1 to be mysqli_result, null given in F: \ XAMPP \ htdocs \ Pap2 \ bedrooms.php on line 69