Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old August 27th, 2003, 07:40 PM
DorkRawk DorkRawk is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 173 DorkRawk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to DorkRawk
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
  1.  
  2. $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'";
  3. $result = mysql_query($sql);
  4. if($result)
  5. {header("Location: bandonly.php"); }
  6. else
  7. {
  8.     echo $html;
  9.     echo "Error in submitting bio<br>";
  10.     echo "<a href='bio.php'>Back To Edit Bio</a><br>";
  11.     echo "or<br>";
  12.     echo "<a href='bandonly.php'>Go back to the band members only page.</a></br>";
  13.     echo "</html>";
  14. }

Can anyone help me out?

Reply With Quote
  #2  
Old August 27th, 2003, 08:46 PM
bakertrg's Avatar
bakertrg bakertrg is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Scottsdale AZ, US
Posts: 2,253 bakertrg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 48 m 45 sec
Reputation Power: 4
Send a message via Yahoo to bakertrg
RE: Updateing troubles

why don't you add this to your code and tell us what you get.


php Code:
Original - php Code
  1.  
  2. $result = mysql_query($sql) or die(mysql_error());


Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > Updateing troubles


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway