Add php files

This commit is contained in:
2025-05-12 15:44:39 +00:00
parent c951760058
commit 82d5804ac4
9534 changed files with 2638137 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
include_once("config.php");
$sql=mysql_connect($sugar_config['dbconfig']['db_host_name'],$sugar_config['dbconfig']['db_user_name'],$sugar_config['dbconfig']['db_password']);
mysql_select_db($sugar_config['dbconfig']['db_name']);
mysql_query("set character set utf8;");
mysql_query("SET NAMES 'utf8'");
$zap=mysql_query("select t.id,p.description from ecmtransactions as t
join ecmpayments as p on p.id=t.record_id
where t.record_type='EcmPayments';");
while($dane=mysql_fetch_assoc($zap)){
mysql_query("update ecmtransactions set description='".$dane['description']."' where id='".$dane['id']."'");
}
echo mysql_num_rows($zap);