Computing.Net > Forums > Web Development > PHP Update

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

PHP Update

Reply to Message Icon

Name: ChromeShark (by croftstorm)
Date: April 17, 2006 at 08:08:13 Pacific
OS: windows xp
CPU/Ram: 512mb
Product: Compaq
Comment:

I've been using PHP successfully for several years, but a recent project forced me to use a host I am unfamiliar with and their php is configured differently to what I am used to. My current problem is that I cannot get PHPs Update function to work. It is a simple bit of code that uses POST data from a form to update the SQL database:

$id = $_GET["id"];
$title = $_POST["title"];
$siteurl = $_POST["siteurl"];
$sitedescription = $_POST["sitedescription"];
print "Your Link $title has been updated.";
$subupdate = "UPDATE mathslinks SET title='$title', siteurl='$siteurl', sitedescription = '$sitedescription' WHERE id = '$id'";
$updater = mysql_query($subupdate);

I see no reason why this should not be working, maybe someone out there with a keener eye can help me out.

croftstorm.net



Sponsored Link
Ads by Google

Response Number 1
Name: ChromeShark (by croftstorm)
Date: April 17, 2006 at 08:24:06 Pacific
Reply:

Never mind, figured it out

croftstorm.net


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: PHP Update

JS/PHP: Update w/Call to 2nd Page www.computing.net/answers/webdevel/jsphp-update-wcall-to-2nd-page/1907.html

PHP/MYSQL updating w/checkboxes www.computing.net/answers/webdevel/phpmysql-updating-wcheckboxes/3321.html

PHP File read/write?????? www.computing.net/answers/webdevel/php-file-readwrite/1298.html