Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

Go Back   Nukemods Forum > PHP-Nuke 7.x > Nuke 7.x - Modules

Reply
 
LinkBack Thread Tools Display Modes
Update a record, but no update is done
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 20
Join Date: Dec 2004
Update a record, but no update is done - 01-05-2005, 06:40 PM

i update a record in mysql with the code below, but the selected record is not being updated. What did i do wrong with this code??
Code:
function probs_agenda_edit_accept($pid, $datum, $tijd, $klantid, $description, $addby) {
   global $admin, $bgcolor2, $prefix, $dbi, $multilingual, $result;
   include ("header.php");
   GraphicAdmin();
   title("Problems - Agenda - Edit - Save");
   probs();
   Opentable();
   $result = $db->sql_query("UPDATE ".$prefix."_probs_agenda SET datum='".date("Y-m-d", strtotime($datum))."', tijd='$tijd', 

klantid='$klantid', description='$description', addby='$addby' where id='$pid' LIMIT 1", $dbi);
   echo "Agenda item bijgewerkt";
   echo "$result";
   closetable();
   include("footer.php");
}
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Moderator
 
Status: Offline
Posts: 957
Join Date: Nov 2002
Location: Belgium
01-05-2005, 06:54 PM

Use this piece of code
Code:
function probs_agenda_edit_accept($pid, $datum, $tijd, $klantid, $description, $addby) {
   global $admin, $bgcolor2, $prefix, $db, $multilingual, $result;
   include ("header.php");
   GraphicAdmin();
   title("Problems - Agenda - Edit - Save");
   probs();
   OpenTable();
   $sql = "UPDATE ".$prefix."_probs_agenda SET datum='".date("Y-m-d", strtotime($datum))."', tijd='$tijd', klantid='$klantid', description='$description', addby='$addby' where id='$pid' LIMIT 1";
   $db->sql_query($sql);
   echo "Agenda item bijgewerkt";
   echo "$sql";
   CloseTable();
   include("footer.php");
}


Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 20
Join Date: Dec 2004
01-05-2005, 07:40 PM

thx Mighty_Y
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Moderator
 
Status: Offline
Posts: 957
Join Date: Nov 2002
Location: Belgium
01-06-2005, 04:33 AM

np, glad it works


Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
update php-nuke Jriley Nuke 7.x - General 5 09-03-2005 07:04 AM
Update to profile_add_body.tpl JRSweets nukemods.com 3 11-21-2004 01:53 PM
Update Forums Help crimsonred Nuke 7.x - General 3 08-26-2004 02:47 PM
Chronicles Update to 6.5 WhyMan Nuke 6.5 to 6.9 - Themes 7 06-09-2003 05:49 PM
Where is the update for SubBlack HimmelHund Nuke 6.5 to 6.9 - Themes 3 04-08-2003 11:32 AM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31