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 July 23rd, 2012, 08:47 AM
Registered User
 
Join Date: Jul 2012
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default New error message

This is what my browser displays:
You are runnning on a Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11
Could not run request (SELECT people_fullname FROM people WHERE people_id='2') from DB:

Any ideas? Where does the people_id='2' come from?
 
Old July 23rd, 2012, 09:40 AM
Registered User
 
Join Date: Jul 2012
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default New error

people_id I understand, but where does 2 come in?
 
Old July 24th, 2012, 04:57 AM
Friend of Wrox
 
Join Date: May 2011
Posts: 125
Thanks: 0
Thanked 24 Times in 24 Posts
Default

Greetings,

The 2 is the value $movie_director has, as the variable is replaced by it's value so the SQL Query makes some sense.
 
Old July 30th, 2012, 03:17 PM
Registered User
 
Join Date: Jul 2012
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Table does not populate

I now get the new page, but the only thing that comes up is "Broke even", so obviously no data is transferred from the database. Is there anyone who has had similar problems with the movie_details.php file in Beginning PHP, Mysql and Apache, ch. 4?

Regards
Lennart





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 10 - parseXML warning scottgardner BOOK: Professional iPhone and iPad Database Application Programming 0 May 1st, 2011 12:47 PM
Chapter 10 orderrecord extract.csv file prudviarrobotha BOOK: Expert SQL Server 2005 Integration Services ISBN: 978-0-470-13411-5 0 July 20th, 2009 09:53 PM
Chapter 9 JavaScript Warning Message Page 304 workib BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 5 May 28th, 2008 04:42 PM
Chapter 5 -- Sample 1: Zip Code Extract mt BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 1 February 20th, 2006 04:41 PM
chapter 15 cart.php Warning: mysql_fetch_array(): pink BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 July 19th, 2005 07:49 PM





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