query($sql)){ die ('There was an error running the query [' . $con->error . ']'); } $count = mysqli_query($con, $sqlcount); $row3 = mysqli_fetch_array($count); if ($row3[0] <> 1) { echo 'You have ' . $row3[0] . ' Funko Pops!
Click the Pop # to edit the data
'; } else { echo 'You have ' . $row3[0] . ' Funko Pop - go buy some more, it\s lonely!
Click the Pop # to edit the data
'; } echo ''; echo ''; if (mysqli_num_rows($result) > 0) { while ($row = $result->fetch_array()){ echo ''; } } echo '
Pop #Pop NameDate AddedPop Collection
' . $row['popno'] . '' . $row['popname'] . '' . $row['inserteddate'] . '' . $row['popcollection'] . '
'; } include_once ('footer.php'); ?>