if ($a=="deletelist") { $sql = sed_sql_query("DELETE FROM ".$cfg['plugin']['options']['dbprefix']."_notebook WHERE notebook_userid = '".$usr['id']."' AND notebook_id = '$id' "); header("Location: plug.php?e=options"); }
if ($a=="updatelist") { $sql = sed_sql_query("DELETE FROM ".$cfg['plugin']['options']['dbprefix']."_notebook WHERE notebook_userid = '".$usr['id']."' AND notebook_id = '$id' "); $g = array ('nnotebook_id','nnotebook_userid', 'nnotebook_message'); foreach($g as $x) $$x = $HTTP_POST_VARS[$x]; $sql = sed_sql_query("INSERT INTO ".$cfg['plugin']['options']['dbprefix']."_notebook (notebook_id, notebook_userid, notebook_message) VALUES ('$nnotebook_id', '".$usr['id']."', '$nnotebook_message') "); header("Location: plug.php?e=options"); }
$notes .= "<p> ".$L['currenttodo']." <ul>";
$query= sed_sql_query("SELECT * FROM ".$cfg['plugin']['options']['dbprefix']."_notebook WHERE notebook_userid = '".$usr['id']."' ORDER by notebook_id DESC"); $notenum = sed_sql_numrows($query); if ($notenum==0) { $notes .="".$L['nonotes'].""; } while ($sql = sed_sql_fetcharray($query)) { $notes .= "<li>" .sed_parse(sed_cc($sql['notebook_message']));
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
well this is part of an engine (a plug-in of it) and when i run the code the page loads blank and when u go back nothing has changed or rather nothing was added to the db
BTW I, for one have a very low attention span when it comes to wheedling the necessary information out of someone who expects help with their problem without actually divulging anything useful!
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?