SunQuest
           PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old August 7th, 2002, 03:35 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Database and PHP forms

Hello,

In my form, i am trying to display all the fields from my table and also trying to update them.I've noticed something strange!!

1.Only the last entered value into the table can only be updated.

2.When i try to update a column for example, IP address, all rows are getting updated.

For example, if we have a table structure like this:

Id IP address Router Ip TFTP server
--------------------------------------------------------
Now, I tried to enter the following values through one of my form.

1 101.202.303 111.222.333 987.654.323

and again when i try to enter a new set of values, i see the previoulsy entered record again but with a different Id number.

So, it looks some thing like this now.

1 101.202.303 111.222.333 987.654.323
5 101.202.303 111.222.333 987.654.323

Now, when i try to update the second column8IP address) with id being 1, it does'nt get updated.With id 5, it gets updated but the first record also gets updated.

Why is this happening, aint sure why itz like that.

I'm using interbase as my database.

your help would be highly appreciated.

Thanks in advance



Reply With Quote
  #2  
Old August 8th, 2002, 05:27 AM
DevlshOne DevlshOne is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Missouri, USA
Posts: 30 DevlshOne User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Database and PHP forms

Perhaps if you posted the code, it would be a little easier to help you debug.

Reply With Quote
  #3  
Old August 8th, 2002, 08:10 AM
siteworkspro.com siteworkspro.com is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Sydney, Australia
Posts: 92 siteworkspro.com User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to siteworkspro.com Send a message via AIM to siteworkspro.com
RE: Database and PHP forms

yeah, plz post ya code

Reply With Quote
  #4  
Old August 8th, 2002, 08:10 AM
siteworkspro.com siteworkspro.com is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Sydney, Australia
Posts: 92 siteworkspro.com User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to siteworkspro.com Send a message via AIM to siteworkspro.com
RE: Database and PHP forms

yeah, plz post ya code

Reply With Quote
  #5  
Old August 8th, 2002, 08:51 AM
fdqps fdqps is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Malmo, Sweden
Posts: 2 fdqps User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Database and PHP forms

An easy way to see what happens is to echo out the sql command you send to your database.
Then you cut and paste this into your SQL command tool and execute it.
This will help you find any errors in the sql command.
Also you should secure that you dont have columns that are unique or autoincrement and so on.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > Database and PHP forms


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 6 hosted by Hostway