Jason -- the code creates the following errors when called in the success.php page:
Fatal error: Call to a member function ConditionalTotal() on a non-object in D:\WebDev\htdocs\ccds2011\success.php on line 85
<?php
function updateBookspD() {
$now=mktime();
do {
if ($bookfair->ConditionalTotal("Quantity", "recID", $row_books['recID']) > 0) {
$query = mysql_query('UPDATE books SET purchaseDate = '.$now.' WHERE recID = '.$row_books['recID']);
}
}
while ($row_books = mysql_fetch_assoc('books'));
}
?>
Line 85 is the if statement. . .
Thoughts??