parse error on credit card validation script
Posted: Mon Jul 15, 2002 1:33 pm
I'm using a pre-made credit card validation script I found and i implemented it exactly as you're supposed to and I get an error message
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /home/ttoomey/pancorp.com/newsletter/class.creditcard.php on line 18
it occurs in this area of the code
on the line CCreditCard($name, $type, $num, $expm, $expy) {
anyone know what it is?
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /home/ttoomey/pancorp.com/newsletter/class.creditcard.php on line 18
it occurs in this area of the code
Code: Select all
class CCreditCard {
// Class Members
var $__ccName = '';
var $__ccType = '';
var $__ccNum = '';
var $__ccExpM = 0;
var $__ccExpY = 0;
// Constructor function
CCreditCard($name, $type, $num, $expm, $expy) {anyone know what it is?