
August 27th, 2003, 07:40 PM
|
|
|
|
Join Date: Apr 2007
Posts: 173
Time spent in forums: < 1 sec
Reputation Power: 2
|
|
|
Updateing troubles
I am haveing trouble with a table updateing script that I am writing. I have values being passed in from a form that I want updated into a table. I have done a few pages similar to this, but for some reason this one just wont work. I keep getting the error message that I wrote and the data isn't added to the table. In the 'bios' table I have name as an index and a primary key.
php Code:
Original
- php Code |
|
|
|
$sql = "UPDATE bios SET instruments='$instruments', birthday='$birthday', influences='$influences', single='$single', gear='$gear', location='$location', lover='$lover', dancemove='$dancemove', ashton='$ashton', softdrink='$softdrink', conanorleno='$conanorleno', subway='$subway', song='$song', feeling='$feeling', album='$album', skaband='$skaband', talkshow='$talkshow', bandname='$bandname' WHERE name='$myname'"; if($result) {header("Location: bandonly.php"); } else { echo "Error in submitting bio<br>"; echo "<a href='bio.php'>Back To Edit Bio</a><br>"; echo "<a href='bandonly.php'>Go back to the band members only page.</a></br>"; }
Can anyone help me out?
|