logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 07-10-2008, 03:13 AM   #1
2bz2p
2bz2p's Avatar
 
Join Date: May 2008
Location: Cape Cod, MA, USA
Posts: 266
Default Question on this error?

Hi,

So I have come across this before but cant remember what it is and or its fixes.


Parse error: syntax error, unexpected $end in C:\wamp\www\vpilot\VPilot_Dev\manage_fleet_add.php on line 292

Thanks
2b

Solved it was a missing }, but what does the error mean, that there is a missing curly bracket???
thanks agian
__________________
"PHP is like a virtual technical lego set but imagine the biggest box ever" -- DJ

My Projects_____________________
vPilot <-- Custom Virtual Pilot Management Systems

Last edited by 2bz2p; 07-10-2008 at 03:21 AM..
2bz2p is offline   Reply With Quote
Old 07-10-2008, 05:20 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,204
Default

If you have solved it then yup that was the unexpected $end i would think
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 07-10-2008, 05:45 AM   #3
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

post ya code
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 07-11-2008, 04:47 AM   #4
2bz2p
2bz2p's Avatar
 
Join Date: May 2008
Location: Cape Cod, MA, USA
Posts: 266
Default

Yeah I was just wondering the what possibilities to look for when I get it.
Thanks
2b

I marked out the curly bracket that was missing.
PHP Code:
if(isset($_POST['add'])) {
$name addslashes (trim($_POST['name']));
$serv_date addslashes (trim($_POST['serv_date']));
$description addslashes (trim($_POST['description']));
$target_path $cfg['dir'] . 'source/images/fleet/' $_FILES['uploadedfile']['name'];
move_uploaded_file($_FILES['uploadedfile']['tmp_name'],$target_path);
$image $_FILES['uploadedfile']['name'];
/*echo $name. "<br />";
echo $number. "<br />";
echo $description. "<br />";
echo $image. "<br />";
echo "<pre>";
print_r($_FILES);
echo "</pre>";*/
mysql_select_db($database_conn_abrv$conn_abrv);
mysql_query("INSERT INTO fleet (name, serv_date, description, image) VALUES ('$name', '$serv_date', '$description', '$image')") or die (mysql_error'Not inserted'));

header'Location:'.$cfg['domain'].'index.php?action=fleet&change=added');
exit;

//it was this brace missing. 
__________________
"PHP is like a virtual technical lego set but imagine the biggest box ever" -- DJ

My Projects_____________________
vPilot <-- Custom Virtual Pilot Management Systems
2bz2p is offline   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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:32 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com