![]() |
|
Just another Perl shrine | |
PerlMonks |
Re: Errors in Codeby Enlil (Parson) |
on Apr 15, 2003 at 21:41 UTC ( #250693=note: print w/replies, xml ) | Need Help?? |
The first thing that comes pops out is that fact that you seem to be disconnecting from the database before you run the last command.(i.e. ) The second thing is that in the INSERT statement you are putting single quotes around $CLIENT, $RECORD, etc, which is fine but I would assume that you need to put these single quotes around the same things in the UPDATE statement and the SELECT statement if they are not numerical. The last thing is that you should probably have a WHERE clause in your UPDATE statement so that you don't change all the records. -enlil
In Section
Seekers of Perl Wisdom
|
|