Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Other
Author Message
BriX
Hangin' Around



Joined: Dec 04, 2005
Posts: 31

PostPosted: Sun Mar 04, 2007 6:04 pm Reply with quote

I have been testing NSN Project for about a week. When I try to delete a task I get the following error:
Code:
Parse error: parse error, unexpected '\"' in /path to web dir/modules/Projects/admin/PJTaskDelete.php on line 17


I cannot find \" anywhere in PJTaskDelete.php

Any suggestions or advice welcome.
TIA
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Mar 04, 2007 9:05 pm Reply with quote

Well what's on and around line 17?

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
BriX







PostPosted: Sun Mar 04, 2007 9:24 pm Reply with quote

This is the entire file minus php tags.

Code:
if(!defined('NSNPJ_ADMIN')) { die("Illegal Access Detected!!!"); }

$task_id = intval($task_id);
$task = pjtask_info($task_id);
$db->sql_query("DELETE FROM `".$prefix."_nsnpj_tasks` WHERE `task_id`='$task_id'");
$db->sql_query("OPTIMIZE TABLE `".$prefix."_nsnpj_tasks`");
$db->sql_query("DELETE FROM `".$prefix."_nsnpj_tasks_members` WHERE `task_id`='$task_id'");
$db->sql_query("OPTIMIZE TABLE `".$prefix."_nsnpj_tasks_members`");
header("Location: modules.php?name=$modname&op=PJProject&project_id=".$task['project_id']");
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Mon Mar 05, 2007 6:15 am Reply with quote

Change that last line to this:

header("Location: modules.php?name=$modname&op=PJProject&project_id=".$task['project_id']);

Note the last " is removed.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
BriX







PostPosted: Mon Mar 05, 2007 11:24 am Reply with quote

That fixed it. Thanks!
 
montego







PostPosted: Mon Mar 05, 2007 5:40 pm Reply with quote

RavensScripts
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Other

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©