TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 11-12-2009, 12:00 PM   #21 (permalink)
The Wanderer
 
Join Date: Nov 2009
Posts: 13
Thanks: 0
cskott is on a distinguished road
Default

It still dosen't work.
I think i give up..
cskott is offline  
Reply With Quote
Old 11-12-2009, 02:10 PM   #22 (permalink)
The Acquainted
 
Join Date: Nov 2009
Location: nr Stratford-Upon-Avon
Posts: 137
Thanks: 3
maeltar is on a distinguished road
Default

There's an old saying...

"Winners never quit, and Quitters never win"

Don't just copy and paste everything, read through, check it through...

You will find, that people will help, but they won't do it for you...
__________________
Thanks... Simon

Sex, Drugs & Linux Rules
Send a message via MSN to maeltar
maeltar is offline  
Reply With Quote
Old 11-12-2009, 02:19 PM   #23 (permalink)
The Wanderer
 
Join Date: Nov 2009
Posts: 13
Thanks: 0
cskott is on a distinguished road
Default

Yes i know..
I have just nearly tried everything.

Is it normal that the UPDATE string is so difficult to get working?
cskott is offline  
Reply With Quote
Old 11-12-2009, 02:53 PM   #24 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

In order for you to become a better PHP developer you need to actually understand what is going wrong, like the post above suggests myself or someone else doing it for you won't help you in the long run.

We must start by logically looking at the problem.

1. PHP isnt complaining anymore, so PHP syntax error isnt at fault and our program flow doesnt look to be at fault
2. MYSQL doesn't seem to find a problem with the syntax of our SQL, otherwise mysql_query would have returned false and thus mysql_error() would have been fired.

so we must now think about the data passed into the SQL, is that where the problem is? does the id you are testing against in the WHERE clause actually exist in the db?

Clue: mysql_affected_rows();
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Old 11-12-2009, 04:32 PM   #25 (permalink)
The Acquainted
 
Join Date: Nov 2009
Location: nr Stratford-Upon-Avon
Posts: 137
Thanks: 3
maeltar is on a distinguished road
Default

Another clue is look at the form source (in the browser), check what the variables are called and see if you can find the error :D
__________________
Thanks... Simon

Sex, Drugs & Linux Rules
Send a message via MSN to maeltar
maeltar is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
UPDATE MySQL data via web forms? Randy Absolute Beginners 26 05-07-2009 02:31 AM
having trouble updating with mysql sarmenhb Absolute Beginners 7 11-18-2008 07:49 AM
want to fetch data in excel sheet from my mysql database sharma.9.pooja Absolute Beginners 2 06-24-2008 05:04 AM
Log User Data with PHP & MySQL mortisimus Absolute Beginners 6 09-30-2007 05:52 PM


All times are GMT. The time now is 05:13 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design