Ok. I wasn't sure "what" to declare it as since it will begin the array. So for testing, I declared it as 'a'. Still got error, and even when I declared it as a global got the error. I'm looking at a totally different example then what I'm donig though.
<?php
//show comments
$select = 'a';
function showcomments($select) {
global $select;
$show = $select->query("SELECT username, subject, contact, comment, date FROM comments WHERE page = ? ORDER BY time");
$show->execute(array($_SERVER['REQUEST_URL']));
$numRows = $show->rowCount();
}
?>
I do have a connection to my database (no errors from it anyways🙂 and that is referenced in a seperate file and included into the main file, as is this function page I'm working on.