i have 2tables: pub/prop. columns : pub: idpub/cont/stt/cbl/dtp prop: idprop/nomett/npprop/adrprop/cnprop/psdprop/mdpprop
this is the query and php code:
//including the database connection file
include_once("config.php");
$idprop= $_SESSION['psdprop'];
$result = mysqli_query($mysqli, "SELECT * FROM pub
INNER JOIN prop ON pub.cbl = prop.nomett ");```
fetching->
<table width='80%' border=0>
<tr bgcolor='#CCCCCC'>
<td>Cont</td>
</tr>
``` <?php
while($res = mysqli_fetch_array($result)) {
echo "<tr>";
echo "<td>".$res['cont']."</td>";
}
?>
</table>
when i execute the code below no result is displayed inside the table and the msg error is the following: mysqli_fetch_array() expects parameter 1 to be mysqli_result, bool given in /opt/lampp/htdocs/SYC/cprop/coprop-dashboard.php on line 92.
when i execute the query in phpmyadmin its successful but return no row even if there is content in the tables.