Skip to main content
remoção de conteúdo irrelevante.
Fonte Link
gato
  • 23,7mil
  • 33
  • 125
  • 255

Acredito que isso resolva seu problema:

<?php
    $count = 0;
    $res = $mysqli->query("SELECT * FROM payments WHERE client_email='$xemail'");

    while($row = $res->fetch_array()){
      $top[$count] = $row['nomeDaColuna'];
      $count++;
    }

    echo '<div id="transaction_id">'.$top[0].'</div>';
    echo '<div id="client_email">'.$top[1].'</div>';
    echo '<div id="payment_method">'.$top[2].'</div>';
    echo '<div id="payment_method_transaction">'.$top[3].'</div>';
    echo '<div id="transaction_status">'.$top[4].'</div>';
    echo '<div id="transaction_date">'.$top[5].'</div>';
    echo '<div id="transaction_date_last">'.$top[6].'</div>';
    echo '<div id="product">'.$top[7].'</div>';
    echo '<div id="product_value">'.$top[8].'</div>';
    echo '<div id="client_name">'.$top[9].'</div>';
    echo '<div id="status">'.$top[10].'</div>';
?>

Espero ter ajudado.

Acredito que isso resolva seu problema:

<?php
    $count = 0;
    $res = $mysqli->query("SELECT * FROM payments WHERE client_email='$xemail'");

    while($row = $res->fetch_array()){
      $top[$count] = $row['nomeDaColuna'];
      $count++;
    }

    echo '<div id="transaction_id">'.$top[0].'</div>';
    echo '<div id="client_email">'.$top[1].'</div>';
    echo '<div id="payment_method">'.$top[2].'</div>';
    echo '<div id="payment_method_transaction">'.$top[3].'</div>';
    echo '<div id="transaction_status">'.$top[4].'</div>';
    echo '<div id="transaction_date">'.$top[5].'</div>';
    echo '<div id="transaction_date_last">'.$top[6].'</div>';
    echo '<div id="product">'.$top[7].'</div>';
    echo '<div id="product_value">'.$top[8].'</div>';
    echo '<div id="client_name">'.$top[9].'</div>';
    echo '<div id="status">'.$top[10].'</div>';
?>

Espero ter ajudado.

Acredito que isso resolva seu problema:

<?php
    $count = 0;
    $res = $mysqli->query("SELECT * FROM payments WHERE client_email='$xemail'");

    while($row = $res->fetch_array()){
      $top[$count] = $row['nomeDaColuna'];
      $count++;
    }

    echo '<div id="transaction_id">'.$top[0].'</div>';
    echo '<div id="client_email">'.$top[1].'</div>';
    echo '<div id="payment_method">'.$top[2].'</div>';
    echo '<div id="payment_method_transaction">'.$top[3].'</div>';
    echo '<div id="transaction_status">'.$top[4].'</div>';
    echo '<div id="transaction_date">'.$top[5].'</div>';
    echo '<div id="transaction_date_last">'.$top[6].'</div>';
    echo '<div id="product">'.$top[7].'</div>';
    echo '<div id="product_value">'.$top[8].'</div>';
    echo '<div id="client_name">'.$top[9].'</div>';
    echo '<div id="status">'.$top[10].'</div>';
?>
Fonte Link
Ricardo Mota
  • 2,9mil
  • 11
  • 21

Acredito que isso resolva seu problema:

<?php
    $count = 0;
    $res = $mysqli->query("SELECT * FROM payments WHERE client_email='$xemail'");

    while($row = $res->fetch_array()){
      $top[$count] = $row['nomeDaColuna'];
      $count++;
    }

    echo '<div id="transaction_id">'.$top[0].'</div>';
    echo '<div id="client_email">'.$top[1].'</div>';
    echo '<div id="payment_method">'.$top[2].'</div>';
    echo '<div id="payment_method_transaction">'.$top[3].'</div>';
    echo '<div id="transaction_status">'.$top[4].'</div>';
    echo '<div id="transaction_date">'.$top[5].'</div>';
    echo '<div id="transaction_date_last">'.$top[6].'</div>';
    echo '<div id="product">'.$top[7].'</div>';
    echo '<div id="product_value">'.$top[8].'</div>';
    echo '<div id="client_name">'.$top[9].'</div>';
    echo '<div id="status">'.$top[10].'</div>';
?>

Espero ter ajudado.