Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP 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 February 5th, 2011, 08:47 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Book's Code gives me Error

EDIT:Sorry. The Problem was because of configuration error on my system.Working fine now :)


I downloaded the code from wrox.
I used the downloaded files (just edited config.php file to use my database and usn, password)
I did not modify other files.
But when i used http://localhost/view_members.php or view_members.php,
i get the following error:
Quote:
?>
Strict Standards: Non-static method DataObject::connect() should not be called statically in C:\Apache\htdocs\Member.class.php on line 54
Connection failed:could not find driver
Edit: Code is from Beginning PHP 5.3 for chapter 13

Last edited by santo101; February 6th, 2011 at 01:48 PM.. Reason: missing info
 
Old April 30th, 2011, 02:29 PM
Authorized User
 
Join Date: Sep 2010
Posts: 20
Thanks: 0
Thanked 2 Times in 2 Posts
Default

What was the configuration error that was causing it? I'm having the same issue.
 
Old July 14th, 2012, 05:12 AM
Registered User
 
Join Date: Jul 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Angry Not solved yet

can any one resolve this issue please ?
i am not getting the right configuration as santo101 suggest.





Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't download my new book's code diego0404 ASP.NET 2.0 Basics 0 March 7th, 2006 11:03 PM
where to find this book's code ybjy82 Wrox Book Feedback 1 October 3rd, 2004 11:39 AM
Why Could not I find my book's code? guanzi All Other Wrox Books 1 March 13th, 2004 04:08 AM
Wrox's book's source code. Where r they ? wireblock All Other Wrox Books 7 February 2nd, 2004 09:59 AM
Find the book's code:Fase Track ASP.NET c# Edition Pan Wuying All Other Wrox Books 0 October 28th, 2003 10:54 PM





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