$query = "insert into ".Mage::getSingleton('core/resource')->getTableName('customer_siller')." (id, customer_id, ScrenName, profile, avatar, banner, PayPal) values (NULL, ".$customer_id.", '".$ScreenName."', '".$profile."', '".$customer_id.$_FILES['avatar']['name']."', '".$customer_id.$_FILES['banner']['name']."', '".$PayPal."')"; $write->query($query);
как узнать id записи? есть ли аналог
$id=mysql_insert_id();?