Wrox Programmer Forums
BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9
This is the forum to discuss the Wrox book PHP and MySQL: Create-Modify-Reuse by Timothy Boronczyk, Martin E. Psinas; ISBN: 9780470192429
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 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 October 12th, 2010, 09:08 PM
Authorized User
Join Date: Jul 2009
Posts: 77
Thanks: 4
Thanked 6 Times in 6 Posts
Default Chap 10 - issues with admin.php file

ISSUE #1 See post function mysql_format_date unknown?

mysql_format_date is not a PHP MySQL function.
It is a function the author defined in the
file lib/functions.php This was discussed in
detail in the post function mysql_format_date unknown?

ISSUE #2 - admin.php is missing the link to ajax.js

In admin.php, the following line is missing. It should be
added (around line 11).
javascript Code:
<script type="text/javascript" src="js/ajax.js"></script>
Here is what happens if you don't do this.
If you go to the select button and select "Add New" the
form shows up. This is good. However, when you
go to the Select button
and choose an existing item, the form does not show up.

Here is what is going on in the code.
When you do a select it will go to js/blog_admin.js.
When the window loads, it will go to
javascript Code:
document.getElementById('post_id').onchange = show_form;
Then in function show_form it will call fetch_info()

In the fetch_info() function the following line will fail.
javascript Code:
httpObj = createXMLHTTPObject();
This line will fail because this function is in ajax.js

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chap 8, Shopping Cart, issues, Ajax, missing file - checkout.php kenj BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 3 November 22nd, 2012 05:10 PM
Chap 5 Calendar - issues/comments kenj BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 2 May 17th, 2011 01:49 AM
Chap 10 - duplicate file names kenj BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 0 October 12th, 2010 08:45 PM
Chap 7 - check_effect.php file drgnhiker BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 0 March 29th, 2010 04:50 PM
Admin Dashboard Login/Session Issues superfancy BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 2 July 20th, 2009 06:02 PM

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