navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

PHP/MySQL UPDATE not working

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> PHP/MySQL UPDATE not working
Page: [1]
 
hey_pal

 

Posts: 1
Joined: 10/23/2005
Status: offline

 
PHP/MySQL UPDATE not working - 10/23/2005 4:42:03   
OK, so I've really racked my brain on this one. I can't for the life of me to get my PHP UPDATE command working. It just doesn't update the database. INSERT and DELETE work just fine. Here are the relevant lines:

$update = "UPDATE schedule SET day='$day', time='$time', host1='$host1', host2='$host2', email1='$email1', email2='$email2', title='$title', desc='$desc' WHERE id='$id'";
$result = mysql_query($update);

I have it echo the $update string, and all the values are in there correctly. The day, time, and id columns are integer type, but removing the single-quotes didn't help. I've searched everywhere for clues to what could be going wrong, but I really have no idea. Any suggestions would be much appreciated!
Page:   [1]

All Forums >> Web Development >> ASP and Database >> PHP/MySQL UPDATE not working
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts