Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old November 20th, 2005, 07:09 PM
Registered User
 
Join Date: Nov 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default chapter 6 - where is the file people.php?

I can't ADD people on the BD. I can ADD movies but I can't ADD people.
The link ADD (people) go to people.php
Where is this file?
Tx :)


Reply With Quote
  #2 (permalink)  
Old July 29th, 2006, 11:17 AM
Registered User
 
Join Date: Jul 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just experiencing the same problem the book refers to code that is not in the book.

I'm surprised you have not had a response after all this time

Help :)

Reply With Quote
  #3 (permalink)  
Old September 3rd, 2006, 11:32 AM
Registered User
 
Join Date: Sep 2006
Location: Williamsburg, VA, USA.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Arjan,

I did not spend a lot of time reviewing your Chptr 6 problem but, I don't think that there is a people.php.

If you go back to Chapter 3, pages 94-95, you'll find a file, "createmovie.php" which creates the database(DB), "moviesite" which has the table named "people" in it. Then, when you use the "movie.php" page, it will refer to that table in that DB.

TG^2

Reply With Quote
  #4 (permalink)  
Old September 3rd, 2006, 11:41 AM
Registered User
 
Join Date: Sep 2006
Location: Williamsburg, VA, USA.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Do not forget to fill your newly created DB with the data found in the "moviedata.php" script which follows the "createmovie.php" script.

TG^2

Reply With Quote
  #5 (permalink)  
Old October 20th, 2007, 02:09 PM
dba dba is offline
Registered User
 
Join Date: Feb 2005
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

WROX and the authors evidently decided they could write a book but not provide example files like "people.php" which IS require in the code for chapter 6. That, and as seen on this site, a ungodly amount of errors and missing code makes this book a rip off. You can learn a few things from it but without the code it reduces the value significantly.

One way to show your anger is to stop purchasing books by the authors and perhaps WROX.


Reply With Quote
  #6 (permalink)  
Old September 27th, 2008, 12:02 PM
Registered User
 
Join Date: Jul 2008
Location: runcorn, cheshire, United Kingdom.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to newbreed65
Default

i dont know if u notice but its the excersize u have to try yourself it abit annoying that they dont give you it but well it a good way to learn and gain better understanding

Reply With Quote
  #7 (permalink)  
Old April 7th, 2017, 01:14 PM
Registered User
Points: 11, Level: 1
Points: 11, Level: 1 Points: 11, Level: 1 Points: 11, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2017
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Create a file with a form with table entries (people_fullname, people_isactor, people_isdirector) insert_people.php create a file with INSERT INTO queries.
Obviously includes with connection file, and any header ( 'location: filedel form');
I have done so:ý
file: people.php
PHP Code:
<?php
include('conn.php');
?>
<!DOCTYPE html>
<html>
<head>
    <title>DATABASE dei FILM</title>
    <style type="text/css">
    th{background-color: #999;}    
    .odd_row {background-color: #EEE;}
    .even_row{background-color: #FFF;}
    </style>
</head>
<body>
<h1 align="center" style="margin-top: 50px;"><em>Inserimento Attori - Registi</em></h1>
<form style="margin-top:150px;  margin-top:150; width: 70%;margin-left:auto; margin-right:auto; border: dotted #efefef 1px;" action="insert_people.php" method="post">
<fieldset>
<legend> Form inserimento</legend>
<br>
<label>Nome e cognome attore o regista</label><br>
<input type="text" name="people_fullname"><br>

<label>Specificare se Attore principale</label>    <br>
<input type="text" name="people_isactor" placeholder="Codice 1 se attore - codice 0 se regista"><br>

<label>Specificare se Regista</label>    <br>
<input type="text" name="people_isdirector" placeholder="Codice 0 se attore - codice 1 se regista"><br>

<input type="submit" name="submit" value="INSERISCI">

</fieldset>
</form>
</body>
</html>
File insert_people.php
PHP Code:

<?php
include('conn.php');

$people_fullname  $_POST['people_fullname'];
$people_isactor  $_POST['people_isactor'];
$people_isdirector$_POST['people_isdirector'];



$query "INSERT INTO people (people_fullname, people_isactor,people_isdirector) 
VALUES 
('$people_fullname', '$people_isactor' ,'$people_isdirector')"
;

$result mysql_query($query);

if(
$result) {
    
header('location:people.php');
}
?>
I hope I was of aiuto..anche though as I used Italian terms of my tongue.
let me know ... and good luck!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with PHP file reading XML file for output rydog65 Beginning PHP 0 March 26th, 2008 05:13 PM
Chapter 3 - PHP fixxxer125 BOOK: CSS Instant Results 2 October 18th, 2007 02:14 PM
chapter 10 Emailing with php - firstmail.php vijdev BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 July 19th, 2007 01:12 AM
begin php & mysql - chapter 12, user_form.php jon_stubber Beginning PHP 1 March 9th, 2006 09:57 AM
Chapter 12 update_account.php file andrene BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 July 25th, 2005 07:00 PM



All times are GMT -4. The time now is 06:25 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.