Ok me again GROAN
My test code in Zenphoto works GREAT ... but when I use the exact same thing in my API it returns the "admin" or username.... I am stumped at this point any pointers?
=========================================
$id = "3370";
$row = query_single_row('SELECT '.prefix("images").'.id, '.prefix("images").'.filename, '.prefix("albums").'.folder FROM
'.prefix("images").' LEFT JOIN '.prefix("albums").' ON '.prefix("images").'.albumId = '.prefix("albums").'.id
WHERE
'.prefix("images").'.id='.$id, true);
$albumobject = new Album(new Gallery(),$row['folder']);
$imageobject = newImage($albumobject, $row['filename']);
$username = 'Joseph Philbert';
$commentText = 'HELLO Fing World';
//if ($image->filename)
$postcomment = $imageobject->addComment($username, 'jj@jj.com', '', $commentText, '','' , '', '', '', '');
echo 'postcomment '. $postcomment;