how to check if the database is empty? my point is that the first person will be the administrator. here is my code
$query="SELECT staffID,name,surname,email FROM stafftable";
$do=$con->prepare($query);
$do->execute();
$record=$do->rowCount();
if($record>0):
is there a much better option for this?. thanks