02192006 1038 GMT-6

I have been working on a form but ran into a odd situation where, after 
a file is uploaded (a picture), I create a thunbnail in a script. The 
thumbnail is created - I can see it in the folder. So, the next thing is 
this code:

if (file_exists($ThumbDir.$Th_Filename)) {              
  $Query = "UPDATE online SET thumb='".$Th_Filename."' WHERE 
ID=".$Results['PrimaryKeyValue'];
  $Results=update_data($Query);
                                                
    if($Results["RowsAffected"]>0) {
       print '<META HTTP-EQUIV="Refresh" CONTENT="1; URL=Admin.php">';  
    }else {
        print 'Error updating db with thumbnail picture.';
    }
}


The thumbnail exists so, if the file exists then update the db with its 
location. However, the $Results["RowsAffected"] return 0 instead of 1. I 
cant see why.

Just a note, I tested this in another test page and it worked fine. Any 
suggestions?

Wade


[Non-text portions of this message have been removed]



The php_mysql group is dedicated to learn more about the PHP/MySQL web database 
possibilities through group learning.  
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php_mysql/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to