javascript - Undefined index: Project_Name -
i'm trying count project in project table project_name column_name
here code have tried:
<?php $sql = "select count(*) project"; $result = $connection->query($sql); if ($result->num_rows > 0) { $row = $result->fetch_assoc(); $project_count = $row['project_name']; } else { echo "0 results"; } ?>
try this
$sql = "select count(*) project"; $result = $connection->query($sql); if ($result->num_rows > 0) { $row =$result->fetch_array(); $project_count = $row[0]; }
Comments
Post a Comment