We need to see your code... if you have the mysql_affected_rows after each query, we can assume that your connection runs well. All you have to do is check your SQL queries for UPDATE statement, something like this:
$sql=mysql_query("UPDATE table_name SET data1='$data1',data2='$data2', ...... WHERE Condition....");
don't forget WHERE statement, it's important to update a specific query unless you will update the all rows in the table. 🙂
Hope it helps! 🙂