Code Clinic: PHP
- Q: I'm encountering script errors message with the prime_dates.php file
used in the "Priming the date_record column" movie in this course. How
can I resolve these errors?
- A: To avoid script errors, use bindValue() instead of bindParam() in
Line 9 of the prime_dates.php file. You can also download the latest
copy of the exercise files, which corrects this issue for you. For a
more in-depth explanation of the difference between bindValue() and
bindParam(), check out the "Binding input and output values" video (http://http://www.zjjv.com///PHP-tutorials/Binding-input-output-values/169106/181062-4.html) in Accessing Databases with Object-Oriented PHP.
-
Q: Why can't I access the Lake Pend Orielle site
(http://lpo.dt.navy.mil)?
-
A: The Lake Pend Orielle site is not accessible in some
geographical areas. We have contacted the owner of the server to try to
resolve this issue.