i've got this code and i would like to get it as an INT to be able to have it used as a counter to set the new id to introduce new data at 'plats' table. Anyone could help me please?
<?php
include("conection.php");
$consulta="SELECT count(id_plat) FROM `plats`";//consulta no plats actuals
$resultat=mysqli_query($connect,$consulta);
$row = mysql_fetch_assoc($resultat);
echo $row;
mysqli_close($connect);
?>