Wrox Programmer Forums
|
BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143
This is the forum to discuss the Wrox book Beginning PHP 6, Apache, MySQL 6 Web Development by Timothy Boronczyk, Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz; ISBN: 9780470391143
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 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 November 26th, 2011, 01:25 AM
Registered User
 
Join Date: Nov 2011
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Question Error in Page 153/Chapter 4

Hello All

I am new here

nice to meet you all

i m facing a problem in page 153

kindly show me way to get rid out of it


PHP Code:
$query 'select movie_name , movie_year , movie_director , movie_leadactor , 
movie_type , movie_running_time , movie_cost , movie_takings  
from movie where movie_id ='
.$_GET['movie_id'] ; 
problem is $_get['movie_id'] i think , as i learned $_get is used in take variable from html to php files .

when i run the whole script it saying

Quote:
( ! ) Notice: Undefined index: movie_id in C:\wamp\www\Sunny\movie_review3.php on line 64
Call Stack
# Time Memory Function Location
1 0.0033 390696 {main}( ) ..\movie_review3.php:0

Waiting for Reply .......

Thanks
 
Old November 29th, 2011, 07:04 AM
Friend of Wrox
 
Join Date: May 2011
Posts: 125
Thanks: 0
Thanked 24 Times in 24 Posts
Default

Greetings,

GET is used to take values from the URL so to get the script to work you would call it like so:

movie_review3.php?movie_id=1

which would then obtain the information from the db for the movie who's movie_id is 1

Calling the script without the ?movie_id=1 will result in the error your getting as movie_id is not defined in the $_GET array.
The Following User Says Thank You to UseLess For This Useful Post:
OneandonlySunny (December 4th, 2011)
 
Old December 4th, 2011, 01:14 AM
Registered User
 
Join Date: Nov 2011
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Ahh...

thanks

i understood now





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in Chapter 2 page 50 'Try it Out' damac BOOK: Beginning Android Application Development 1 November 2nd, 2011 04:18 PM
Error: Chapter 3 (try it out) page 85 dea0303 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 August 29th, 2006 05:47 PM
Chapter 9 Try It Out Error, page 325 VictorVictor BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 March 22nd, 2006 02:22 PM
CH 5 Page 153 zamankazi BOOK: ASP.NET Website Programming Problem-Design-Solution 8 November 4th, 2004 08:38 AM
Error on Page 153? TKelley777 BOOK: ASP.NET Website Programming Problem-Design-Solution 2 December 22nd, 2003 10:02 PM





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