Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Wyświetlenie w formie linku
Mediqq
post
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 22.07.2020

Ostrzeżenie: (0%)
-----


Cześć,
przyznam się, że pojęcie mam bardziej zielone niż zielone i jedyne co muszę zrobić, to delikatnie zmodyfikować kod. Tutaj mam problem, bo nie jestem sobie w stanie poradzić. Chcę, aby ten output :
  1. $output .= 'Your credit balance is '.$result["coins_balanced"].' please recharge your account';
pojawiał się w formie linku. Poniżej większy fragment kodu. Czy ktoś może mi w jakikolwiek sposób podpowiedzieć?

  1. $queryCre = "SELECT coins_balanced,coins_used FROM member_credits WHERE mem_userid = '".$_SESSION['Sess_UserId']."'";
  2. $statement = $connect->prepare($queryCre);
  3. $statement->execute();
  4. $result = $statement->fetch();
  5. if ($result["coins_balanced"] == '0') {
  6. $output = '<h4 class="text-danger list-unstyled">';
  7. $output .= 'Your credit balance is '.$result["coins_balanced"].' please recharge your account';
  8. $output .= '</h4>';
  9. $data['result'] = $output;
  10. $data['balacned'] = '0';
  11. echo json_encode($data);
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 15:02