GarySB
asked on
PHP Parse Error
I keep getting this error message and I need to know if it is just a simple syntax issue or one of my param is wrong. How can i tell which param is causing the problem if it is not the syntax, Thank You.
MY CODE - THIS IS LINE 193:
function getAvailTransfers(){
$DATA = new data(MYSQL_SERVER, MYSQL_CATALOG, MYSQL_USERNAME,MYSQL_PASSW ORD);
return $DATA::getAvailTransfers($ _SESSION[' USER_NAME' ]);
MY ERROR:
<b>Parse error</b>: syntax error, unexpected T_PAAM_B in <b>/home/mysite/public_htm l/data/ind ex.php</b> on line <b>193</b><br />
Thank You
MY CODE - THIS IS LINE 193:
function getAvailTransfers(){
$DATA = new data(MYSQL_SERVER, MYSQL_CATALOG, MYSQL_USERNAME,MYSQL_PASSW
return $DATA::getAvailTransfers($
MY ERROR:
<b>Parse error</b>: syntax error, unexpected T_PAAM_B in <b>/home/mysite/public_htm
Thank You
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I will try it this evening, Thank You
ASKER
Changing :: to -> took care of the error.
Question before I give you the 500 points.
I am now getting 6 Warnings supplied argument is not a valid MySQL-Link resource in...
Do you want me to post this as a new question or set it up as a bonus and list the lines here?
Thank You
Question before I give you the 500 points.
I am now getting 6 Warnings supplied argument is not a valid MySQL-Link resource in...
Do you want me to post this as a new question or set it up as a bonus and list the lines here?
Thank You
@GarySB: The question is completely different than this one, close this question and ask related question.
$DATA = new data(MYSQL_SERVER, MYSQL_CATALOG, MYSQL_USERNAME,MYSQL_PASSW
return $DATA::getAvailTransfers($
seems a little strange - creating an object of class data and then calling the function that created it ? Is that ok ?