So I wrote a PHP script to communicate to MySQL. And I am trying to get all photos in the table.
But It keep throwing me this parse code
"Parse error: syntax error, unexpected '$sPhotos' (T_VARIABLE)" on this statement below:
$sPhotos = $GLOBALS['CPhotos']->getAllPhotos();
I am a lost I'm not missing any semi-colons and I have CPhotos in the script as
require_once 'php/CPhotos';
Am I calling the function getAllPhotos wrong?
All lines of code above $sPhotos = $GLOBALS['CPhotos']->getAllPhotos(); line.
<?php
require_once 'php/CMySQL.php';
require_once 'php/CMembers.php';
require_once 'php/CPhotos.php';
// get login data
list ($sLoginMenu, $sExtra) = $GLOBALS['CMembers']->getLoginData();
// get all photos
$sPhotos = $GLOBALS['CPhotos']->getAllPhotos();