I have a problem with this code
Code:<?php class Mypdo { static $dbh; public static function mydbh() { if (self::dbh==null) { self::dbh = new PDO("mysql:host=localhost;dbname=auctions", "dimis", "dimis");} return self::dbh; } } ?>What is wrong?Parse error: syntax error, unexpected '=' on line 6



Reply With Quote


Bookmarks