Jump to content

wladeg

New Members
  • Posts

    2
  • Joined

  • Last visited

wladeg's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Its tarot website http://tarovartai.lt where u pick 3 tarot cards from 21card desk, cards cant repeat but they repeat sometimes, please help <div id="cards-list"> <?php $numbers = range(1, 21); shuffle($numbers); foreach ($numbers as $number) { ?> <div id="card" class="card<?php echo $number; ?>" name="<?php echo $number; ?>"></div> <?php } ?> </div> <div id="picked-cards"> <div id="picked-period"></div> <?php $cls = 0; $date = date('Y-m-d'); $query = mysqli_query($conn, "SELECT * FROM history WHERE USERID = '$loggedin' AND DATE = '$date'"); $count = mysqli_num_rows($query); if($count > 0) { while($row = mysqli_fetch_assoc($query)) { $cardID = $row['CARD']; $queryCard = mysqli_query($conn, "SELECT * FROM cards WHERE ID = '$cardID'"); $row2 = mysqli_fetch_assoc($queryCard); ?> <div id="picked-card-desc"> <table> <tr> <td id="forS" class="for"> <?php if($cls == 0){ echo "Veiksmas, situacija"; }elseif($cls == 1){ echo "Ko saugotis ir vengti"; }else{ echo "Rezultatas"; } ?> </td> </tr> <tr> <td class="img"><img src="/images/cards/<?php echo $row2['IMG']; ?>"></td> </tr> <tr> <td class="name"><?php echo $row2['NAME']; ?></td> </tr> <tr> <td class="desc"><div class="scroll"><?php echo $row2['TEXT']; ?></div></td> </tr> </table> </div> <?php $cls++; } } ?> </div>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.