» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 57
0 members and 57 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Oral Chelation - initial cleansing of your veins & arteries

Register Now! Contact Us

About this Page
This is a discussion on Update a record, but no update is done within the Nuke 7.x - Modules forums, part of the PHP-Nuke 7.x category; i update a record in mysql with the code below, but the selected record is not being updated. What did ...


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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-05-2005, 06:40 PM
Junior Member
 
Join Date: Dec 2004
Posts: 20
Update a record, but no update is done
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
  #2 (permalink)  
Old 01-05-2005, 06:54 PM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
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
  #3 (permalink)  
Old 01-05-2005, 07:40 PM
Junior Member
 
Join Date: Dec 2004
Posts: 20
thx Mighty_Y
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-06-2005, 04:33 AM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
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


All times are GMT -5. The time now is 07:26 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.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