function HjshGSDB(c, b) {
const url_str = b + "/include/get_info.php";
$.ajax({
method: "GET",
cache : false,
url: url_str,
data: { 'type': "user_q", 'id': c },
}).done(d => {
location.reload(true);
}
}
function trasactionSend($id='') {
global $db;
$transaction_to_account=$db->query("update `class_users` set `paramtr` = `$parametr` and `paramtr2` = `$parametr2` where `id`='$id'");
}
$get_pay_transactions=$link->query("select count(*) from `class_get_credits` where `user_id`='$id' and `email`='$email_get' and `active`=1 order by id desc limit 1");
$get_pay_tr = mysqli_fetch_row($get_pay_transactions);
$imp_st = implode($get_pay_tr);
return $imp_st;
$string = implode(", ", $get_pay_tr);
return $string;
$get_pay_transactions=$link->query("select count(*) from...
$get_pay_tr = mysqli_fetch_row($get_pay_transactions);
return $get_pay_tr;
$get_balance=users::getUsdderCreditsForMenu($id);
$email_get=users::getEmail($id);
//эти 2 функции работают 100% корректно
$host = 'localhost';
$database = 'test_one';
$user = 'root';
$password = '';
$link = mysqli_connect($host, $user, $password, $database) or die("Ошибка: ".mysqli_error($link));
$transaction_to_account=$link->query("update `class_users` set `credits` = 'credits'+$get_balance where `email`='$email_get'");
if(!$transaction_to_account)return 0;
return $transaction_to_account;
$email_get=users::getEmail($id);
$get_balance=users::getUsdderCreditsForMenu($id);
case 'sjsfa':
require_once $config_abs_path."/classes/users.php";
$id = get_numeric_only("id");
$click_ra=new users();
$click_ra->trasactionCredits($id);
break;
<input onclick="clickTransAction({if $get_id_usr}{$get_id_usr}{/if},'{$live_site}');" class="buttton" value="отправить"/>
<script>
function clickTransAction(c, b) {
url_str = b + "/include/get_info.php";
$.ajax({
method: "GET",
cache : false,
url: url_str,
data: { 'type': "sjsfa", 'id': c },
success: function(d) {
location.reload(true);
}
})
}
</script>
{if !isset($post_array) || !$post_array}{$post_array=array()}{/if}
{if $seo_settings.enable_mod_rewrite}
{capture name=sfield assign=sfield}##currency##/{/capture}
{seo->makeSearchLink p1=$post_array p2=$page p3="page|category" p4='currency' assign='constructed_url'}
{else}
{assign var="separator" value="&"}
{capture name=some_content assign=constructed_url}{$live_site}/listings.php?page=1{foreach from=$post_array key=k item=x name=construct_url}{if $x!='' && $k!="currency" && $k!="page" && $k!="show" && (!$settings.enable_locations || (!in_array($k, $location_fields) && $k!="crt_city"))}{$separator}{$k}={$x|replace:'/':'_'}{/if}{/foreach}{/capture}
{/if}
{$lng.listings.currency}:
{foreach from=$currencies item=v}
{capture name=field_string assign=field_string}currency-{$v.currency}/{/capture}
{if ((!isset($post_array.currency) || !$post_array.currency) && $mc_default_currency!=$v.currency) || (isset($post_array.currency) && $post_array.currency && $v.currency!=$post_array.currency)}<a href="{if $seo_settings.enable_mod_rewrite}{$constructed_url|replace:$sfield:$field_string}{else}{$constructed_url}{$separator}currency={$v.currency}{/if}" class="special">{else}<span>{/if}{$v.currency}{if ((!isset($post_array.currency) || !$post_array.currency) && $mc_default_currency!=$v.currency) || (isset($post_array.currency) && $post_array.currency && $v.currency!=$post_array.currency)}</a>{else}</span>{/if}
{/foreach}
http://localhost/test/q.php?page=1&search_id=2¤cy=$
https://site.org/search/##currency##&search_id=81
посмотрите пожалуйста, может вы что-то поймете
функция пока без id и фото, т.к и так не понятно что сломалось
вызов
правильно же все вроде бы