I'm programming in PHP a function to connect to the mysql DB, but I think the system is not recognizing the php lines. Because I've tried even with a simple "helloMundo.php" and does not recognize it. Specify that I have the tags activated, I attach a capture of the code that I am working on.
I get this error when sending to the browser. Parse error: syntax error, unexpected 'public' (T_PUBLIC) in C: \ wamp \ www \ Web System \ online.php 23 Call Stack
The line it refers to is: public function execute ()