Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Update statement problems

Quote Reply
Update statement problems
I have a sub which select 2 values from the user table changes the values
then does an update to return the changed values to the table.

This was working. I rebooted my machine now it is not working.

These 2 select statements bring return the right values.
my $current_rating = $ut->select(['DP_ImageRating'],{ Username => $cand_user })->fetchrow_array;
my $votes = $ut->select(['DP_ImageVotes'],{ Username => $cand_user })->fetchrow_array;

Then I display the values to the screen and run some math on the values then perform this update statement:

$ut->update( {DP_ImageRating => $new_average,
DP_ImageVotes => $votes},
{ Username => $cand_user});

The update does not update the values.

I tried removing the plugin...which delete the columns from the table. Resyncing the database. Reinstalling.

No joy.

I also tried:
echo > lsql_Users.def

then resyncing..... this fixed the last update problem I had... no joy.
The irritating thing is I can update all the other fields in the table.

Any ideas would be appreciated.

Gordon
=================
www.iuni.com - Custom Coding and Plugins
YouPlusMe.com - For a good time
Subject Author Views Date
Thread Update statement problems gsm 4412 Nov 17, 2002, 11:54 PM
Thread Re: [gsm] Update statement problems
Paul 4222 Nov 18, 2002, 2:28 AM
Thread Re: [Paul] Update statement problems
gsm 4226 Nov 18, 2002, 2:36 AM
Thread Re: [gsm] Update statement problems
Paul 4221 Nov 18, 2002, 2:38 AM
Thread Re: [Paul] Update statement problems
gsm 4221 Nov 18, 2002, 2:44 AM
Thread Re: [gsm] Update statement problems
gsm 4234 Nov 18, 2002, 3:13 AM
Thread Re: [gsm] Update statement problems
gsm 4224 Nov 18, 2002, 3:27 AM
Post Re: [gsm] Update statement problems
gsm 4188 Nov 18, 2002, 11:57 PM