Saturday, 22 July 2017

php - Parse error: syntax error, unexpected '{', expecting '(' help?

I'm trying to make a photo gallery plugin for express engine, yet it's giving me this error and everything seems to close. Any help?




$whats_gonna_happen=$_GET['pictures'];

class upload_pictures
{
public function upload_pictures
{
if (!isset($whats_gonna_happen))
{
$uploads='';

$cout=1;
$stuff=$this->EE->db->query('SELECT id, name FROM albums');
$albums_list='';
while ($row=$stuff->result_array())
{
$albums_list .= "\n";
}
mysql_free_result($stuff);
echo '


Pictures upload









Choose album :



photo :


Caption :








';
}

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...