Wrox Programmer Forums
|
BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1
This is the forum to discuss the Wrox book Professional PHP5 by Ed Lecky-Thompson, Heow Eide-Goodman, Steven D. Nowicki, Alec Cove; ISBN: 9780764572821
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 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 May 6th, 2005, 12:00 AM
Registered User
 
Join Date: Apr 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default parse error, unexpected T_IF

giving error
on line if(isset($result))
 parse error, unexpected T_IF

can anybody help please



$link = mysql_pconnect("..", "", "")
    or die ("Could not connect to MySQL");

     mysql_select_db ("..") or
     #FF0000or die ("Could not select database");

if(isset($_GET['id']))
{

$id=$_GET['id'];
     $query="SELECT * FROM personInfo where indexno='$id';";
    //$res_array= to_array($query)
     $result=mysql_query($query) or die ("query faild");

      if(isset($result))
      {echo" working";}
       //if(mysql_num_rows($result)===1)
     // {
       //$row=resourse_to_array($query);
       //$res_array=result_to_array($result);
     $messege="hi";
       updateData($result,$messege);


 
Old May 6th, 2005, 09:27 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

mysql_select_db ("..") or
#FF0000or die ("Could not select database");

Could have something to do with the hexadecimal number inserted here. ;)

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 4: Parse error: syntax error, unexpected T_SL hanizar77 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 23rd, 2008 09:17 PM
Parse error: syntax error, unexpected T_STRING ginost7 Beginning PHP 1 November 9th, 2007 02:51 AM
PHP Parse error: parse error, unexpected T_STRING geminient PHP How-To 4 August 18th, 2007 02:27 AM
Parse error: parse error, unexpected $end Ayodeji Adegbaju Pro PHP 3 January 12th, 2007 12:21 PM
Parse Error unexpected T_IF Adam H-W Beginning PHP 2 June 9th, 2006 03:37 AM





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