Welcome! Log In Create A New Profile

Advanced

SORRY FORGET ABOUT IT - I MIXED FILES - Help please - wrong line in error messages

Posted by Anonymous User 
Announcements Last Post
Announcement : Programming Students at UNISA School of Computing 06/19/2019 02:01PM
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
I am using Dreamweaver in the final prac but always get parse errors giving me the wrong line.
To give you an example:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\xampp\htdocs\finalprac\studentreg\studentreg_student_addrecordfrombrowser.php on line 75

In the file in DW there are only 56 lines thus making it difficult to find the right line to trace the error.

What can I do?

Thanks in advance for your support.
Iris
avatar
Mac
Re: SORRY FORGET ABOUT IT - I MIXED FILES - Help please - wrong line in error messages
November 02, 2008 10:54AM
See http://www.onlamp.com/pub/a/php/2004/08/12/DebuggingPHP.html

Point is, it is a syntax error so you will have to go through all your code and find the error - most likely something like this

if ( $_FILES['fupload']['type'] == "image/gif' )

if ( $_FILES['fupload']['type'] == "image/gif" ) - the last "
Sorry, only registered users may post in this forum.

Click here to login