Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 05-09-2007, 02:03 PM   #1 (permalink)
 
True Techie

Join Date: Feb 2006

Posts: 228

selina

Send a message via ICQ to selina Send a message via Yahoo to selina
Default MYSQL UPDATE query syntax

I'm trying to update a database using UPDATE query but i don't seem to have the correct syntax. But I can't figure out the correct one, either.
I'm using MySQL 4.0.
Please help!!

code:
$update_reply_sql="UPDATE tbl_guests SET guest_rsvp=('".$_POST['reply']."') WHERE guest_id='".$_POST['showid']."'";
$update_reply_res=mysql_query($update_reply_sql, $mysql) or die(mysql_error($mysql));
selina is offline  
Old 05-10-2007, 12:50 AM   #2 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,683

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: MYSQL UPDATE query syntax

Try this:

$update_reply_sql="UPDATE tbl_guests SET guest_rsvp='{$_POST['reply']}' WHERE guest_id='{$_POST['showid']}'";
__________________

Need website help? PM me!
CrazeD is offline  
 
Closed Thread

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
Microsoft Releases Zune Update Osiris Windows Operating Systems and Software 4 05-29-2007 04:50 PM
Xbox Live Update Available Osiris XBox & XBox 360 2 05-10-2007 03:36 AM
Automatic Update Problem Bondy Windows Operating Systems and Software 3 05-01-2007 09:58 AM
$1000 Challenge... OnlyCurious Building, Buying, or Upgrading High Performance PC Systems 33 04-22-2007 01:34 PM
Steam “Hacked” Update Osiris PC Gaming 0 04-19-2007 06:43 PM