Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: PHP and MySQL 24-Hour Trainer
|
BOOK: PHP and MySQL 24-Hour Trainer
This is the forum to discuss the Wrox book PHP and MySQL 24-Hour Trainer by Andrea Tarr ; ISBN: 978-1-1180-6688-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: PHP and MySQL 24-Hour Trainer section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 30th, 2015, 11:20 AM
Registered User
 
Join Date: Aug 2015
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 20 page 268 calling Database::getConnection

on page 268, the code for calling the getConnection method of the Database class is:

Code:
<?php
$connection = Database::getConnection;
(etc..)
This doesn't work. However, this does:
Code:
<?php 
$connection = Database::getConnection();
The method needs to be invoked to return the correct object. Just leaving this here for future editions, or for anyone else who runs into the same thing.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Typo, Chapter 20 page 416 eightbits2011 BOOK: Visual Basic 2008 Programmer's Reference ISBN: 978-0-470-18262-8 3 December 16th, 2011 07:15 PM
Chapter 20 page 669 Try It Out Step 4 Frodo BOOK: Beginning Visual C# 2010 1 December 14th, 2011 05:17 PM
Chapter 03 - Page 41 - Step 20 torr6420 BOOK: ASP.NET 4 24-Hour Trainer 1 August 23rd, 2010 10:55 AM
Try it out, Chapter 20, page 684, step 3 ron-bgsu BOOK: Beginning Microsoft Visual C# 2008 ISBN: 978-0-470-19135-4 0 October 28th, 2009 08:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.