PHP Classes

Syntax error

Recommend this page to a friend!

      Form CRUD PDO  >  All threads  >  Syntax error  >  (Un) Subscribe thread alerts  
Subject:Syntax error
Summary:namespace into a class declaration
Messages:2
Author:Everton da Rosa
Date:2014-11-19 10:36:28
 

  1. Syntax error   Reply   Report abuse  
Picture of Everton da Rosa Everton da Rosa - 2014-11-19 10:36:28
Her class has a namespace declaration inside the class declaration. This generates a syntax error.

The right way:
FormHandler namespace;

class form extends PDO

  2. Re: Syntax error   Reply   Report abuse  
Picture of Everton da Rosa Everton da Rosa - 2014-11-19 10:39:11 - In reply to message 1 from Everton da Rosa
My God! Many syntax errors that gave the correct test for the class.