Wrox Programmer Forums

Need to download code?

View our list of code downloads.

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 Search this Thread Display Modes
  #1 (permalink)  
Old February 26th, 2005, 08:11 PM
Registered User
 
Join Date: Feb 2005
Location: Parana, Entre Rios, Argentina.
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


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
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



All times are GMT -4. The time now is 11:43 PM.


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