Login   Register  
PHP Classes
elePHPant
Icontem

Simple MySQL Adapter

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Simple MySQL Adapter  >  All threads  >  Simple MySQL Adapter  >  (Un) Subscribe thread alerts  
Subject:Simple MySQL Adapter
Summary:Parse error
Messages:2
Author:Michel Pineau
Date:2013-11-10 16:58:46
Update:2013-11-11 21:52:37
 

  1. Simple MySQL Adapter   Reply   Report abuse  
Picture of Michel Pineau
Michel Pineau
2013-11-10 16:58:46
Sorry: I'm a PHP beginner: can't find the problem when using the package:

*** Error message:
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in G:\Program Files\wamp\www\simpleMySql\MySQL.php on line 14


*** This is line 14 in MySQL.php :
self::->connect();

Thanks very much!
M.P.

  2. Re: Simple MySQL Adapter   Reply   Report abuse  
Picture of Assaad Youssef Abou Rached
Assaad Youssef Abou Rached
2013-11-11 21:52:38 - In reply to message 1 from Michel Pineau
Hello,

Sorry there was a typo on line 14. Please change self::->connect() to self::connect()
Just remove the pointer sign ->

Thanks for your feedback,
Assaad