Discuss I get database not selected in the PHP Development forum on Dev Shed. I get database not selected PHP Development forum discussing coding practices, tips on PHP, and other PHP-related topics. PHP is an open source scripting language that has taken the web development industry by storm.
Posts: 37
Time spent in forums: 12 h 20 m 46 sec
Reputation Power: 1
I dont quite know what you mean about instantiate $q. I am new to PDO and still learning how to do because I am use to using the old method. Could I please have an example if is not to much trouble of what your talking about?
Posts: 2,886
Time spent in forums: 1 Year 2 Weeks 3 Days 8 h 22 m 27 sec
Reputation Power: 581
Sounds like you are unfamiliar with OOP. Northie wrote an excellent introduction so go here first. For a better job than I can do on using PDO go here.
Last edited by gw1500se : February 22nd, 2013 at 07:09 AM.
Posts: 37
Time spent in forums: 12 h 20 m 46 sec
Reputation Power: 1
I caught that syntax error and still no errors just a blank page. I it is quite allright, everybody makes mistakes. You should see some of the noob mistakes i make.
Posts: 37
Time spent in forums: 12 h 20 m 46 sec
Reputation Power: 1
Well I have to go to work now but will be on later. If you were talking about httpd.pid in the logs folder of xampp then all it said was 387 but when I went into the error log it said this:
[Fri Feb 22 11:48:08 2013] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Feb 22 11:48:11 2013] [notice] Digest: generating secret for digest authentication ...
[Fri Feb 22 11:48:11 2013] [notice] Digest: done
[Fri Feb 22 11:48:12 2013] [notice] Apache/2.2.14 (Unix) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l PHP/5.3.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations