Wrox Programmer Forums
|
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 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 February 26th, 2005, 08:11 PM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Unexpected T_VARIABLE

I have this problem when I test the first example of chapter 3 in moviedata.php
The creation of the database (wiley) was succesfully but this file (moviedata.php) gives me an error

Parse error: syntax error, unexpected T_VARIABLE in C:\apachefriends\xampp\htdocs\moviedata.php on line 22
The code is the same as in the code download area of wrox.com
Line 22 is:
//insert data into "movie" table
$insert="INSERT INTO movie (movie_id, movie_name, movie_type, movie_year,
     movie_leadactor, movie_director)
      VALUES (1, 'Bruce Almighty', 5, 2003, 1, 2),
     (2, 'Office Space', 5, 1999, 5, 6),
     (3, 'Grand Canyon', 2, 1991, 4, 3)";
$results = mysql_query($insert) <<<<<<<<<<<<------------------
     or die(mysql_error());
Too much thanks if you could help me!!!!
Daniel







Similar Threads
Thread Thread Starter Forum Replies Last Post
Unexpected error ramkris84 ASP.NET 1.0 and 1.1 Professional 2 April 19th, 2008 04:48 AM
unexpected error has occurred tworkman BOOK: ASP.NET Website Programming Problem-Design-Solution 20 July 1st, 2007 09:49 PM
T_VARIABLE goobywaj BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 March 28th, 2005 05:06 PM
Unexpected : t_string, t_variable, t_num_string scifo PHP Databases 13 November 15th, 2004 05:08 AM
what is the problem of T_VARIABLE in Chapter 3? lancet2003 BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 6 October 24th, 2003 09:25 AM





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