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 March 18th, 2005, 11:08 AM
Registered User
 
Join Date: Mar 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to elals
Default Problem with book Beginning PHP, Apache, Mysql WD 

Beginning PHP, Apache, MySQL Web Development in cap 4 pag 134 ,  i can run consult data SQL in php, already I made several times and nonfunction in cap 4 please help me imcpy the errata code and nathing what happend....
 this the codejavascript:insertsmilie('')

<?php
$link=mysql_connect("localhost","root","mials")or die(mysql_error());
mysql_select_db("wiley") or die (mysql_error());
$query = "SELECT
    movie_name,
    movie_director,
    movie_leadactor,
FROM
    movie";

$result=mysql_query($query,$query) or die(mysql_error());
$num_movies=mysql_num_rows($result);

$movie_header=<<<EOD
     <h2><center>Movie Review Database</center></h2>
     <table  width='70%' border='1' cellpadding='2'
       cellspacing='2' align='center'>
          <tr>
               <th>Movie Title</th>
               <th>Year of Release</th>
               <th>Movie Director</th>
               <th>Movie Lead Actor</th>
               //<th>Movie Type</th>
          </tr>
     </table>
EOD;
while($row=mysql_fetch_array($result))
{
$movie_name=$row['movie_name'];
$movie_director=$row['movie_director'];
$movie_leadactor=$row['movie_director'];

$movie_details.=<<<EOD
<tr>
<td>$movie_name</td>
<td>$movie_director</td>
<td>$movie_leadactor</td>
</tr>
EOD;

}
$movie_details.=<<<EOD
<tr>
<td>&nbsp;</td>
<tr>
<td>Total:$num_movies Movies</td>
</tr>
EOD;


     //echo $movie;
?>:(

Reply With Quote
  #2 (permalink)  
Old December 9th, 2005, 01:39 AM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

too many damn bugs in this book, prevents me from learning =(

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
Beginning PHP, Apache, MySQL Web Development rich_m BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 January 7th, 2007 12:16 PM
Problem with book Beginning PHP, Apache, Mysql WD elals Beginning PHP 1 March 27th, 2005 09:02 AM
Beginning PHP, Apache ... Thank You ! dotty Wrox Book Feedback 0 January 16th, 2005 06:53 AM
Variable naming in Beginning PHP, Apache, MySQL We richard.york Forum and Wrox.com Feedback 0 April 12th, 2004 07:05 PM
Does "Beginning PHP, MySQL and Apache" Exist? pow1983 All Other Wrox Books 12 June 22nd, 2003 06:43 PM



All times are GMT -4. The time now is 12:02 AM.


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