Skip navigation

Retrieving objects from the database

Retrieving objects from the database: Object-Oriented Programming with PHP
Retrieving objects from the database: Object-Oriented Programming with PHP

Join for an in-depth discussion in this video Retrieving objects from the database, part of Object-Oriented Programming with PHP.

Resume Transcript Auto-Scroll
Author
Skill Level Intermediate
1h 57m
Duration
669,369
Views
Show More Show Less

Q: I'm not seeing warnings or errors in my environment like the video; why not?

A: Your PHP configuration is probably configured not to show them to you. This is often true on commercial web hosts and is often the default.&nbsp;Fortunately, there are multiple ways of resolving this.<br /><br />The easiest way would be to explicitly enable error reporting at the top of the PHP script you wish to debug.<br /><br /><span style="font-family: Courier;">error_reporting(E_ALL | E_STRICT); </span><br /><span style="font-family: Courier;">ini_set('display_errors', 1); </span><br /><br />Alternatively, if you have access to your php.ini file and you want to always have error reporting on, change error_reporting = to a development friendly value of<br /><br /><span style="font-family: Courier;">error_reporting = E_ALL | E_STRICT</span><br /><br /><span style="font-family: Courier;">then change display_errors = to</span><br /><br /><span style="font-family: Courier;">display_errors = On</span><br /><br />Finally, if access to the php.ini file is not available, you can&nbsp;add the following directives to your .htaccess or VirtualHost configuration for Apache:<br /><br /><span style="font-family: Courier;">php_value error_reporting 32767</span><br /><span style="font-family: Courier;">php_value display_errors 1</span><br /><br />If you would like a development optimized development environment like the one utilized in this course, see Up and Running with Linux for PHP Developers, <a target="_blank" href="http://www.lynda.com/Linux-training-tutorials/1277-0.html">here</a> in the&nbsp;lynda.com&nbsp;online training library.

<p style="margin: 0.0px 0.0px 16.0px 0.0px;">Q: This course was updated on 4/10/2013. What changed?</p>

<!-- /* Font Definitions */ @font-face {font-family:"MS ??"; mso-font-charset:78; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:-536870145 1791491579 18 0 131231 0;} @font-face {font-family:Verdana; panose-1:2 11 6 4 3 5 4 4 2 4; mso-font-charset:0; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:-1593833729 1073750107 16 0 415 0;} @font-face {font-family:Verdana; panose-1:2 11 6 4 3 5 4 4 2 4; mso-font-charset:0; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:-1593833729 1073750107 16 0 415 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face {font-family:Cambria; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:-1610611985 1073741899 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:Cambria; mso-ascii-font-family:Cambria; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"MS ??"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Cambria; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-family:Cambria; mso-ascii-font-family:Cambria; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"MS ??"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Cambria; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.WordSection1 {page:WordSection1;} --> <p class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><span style="font-size:11.0pt;font-family:Calibri; mso-ascii-theme-font:major-latin;mso-hansi-theme-font:major-latin;mso-bidi-font-family: Verdana;color:black"><p style="margin: 0.0px 0.0px 16.0px 0.0px;">A: The author rerecorded some of the tutorials to add more background information and better graphics.</p></span></p>

Skills covered in this course
Languages Development Tools Developer PHP

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now