1
Zicane
Lotto game mod, need help
  • 2004/2/15 3:16

  • Zicane

  • Just popping in

  • Posts: 24

  • Since: 2002/12/12


Hi

I have made a lotto game module where users can pick 5 numbers onces a day.

The game works, but since php is not my strong side (did alot of copy and paste), I am hoping someone could help me with this mod..

In the admin the played numbers is showed like this...

admin - 25, 21, 9, 26, 8
admin - 21, 28, 12, 13, 20

The code I used to view them is...
Quote:

<?php
$result = $xoopsDB->query("select uname, h1, h2, h3, h4, h5 from ".$xoopsDB->prefix("lottoplade01nums")." order by uname");
while(list($uname, $h1, $h2, $h3, $h4, $h5) = $xoopsDB->fetchRow($result)) {
$secname=$myts->makeTboxData4Show($secname);
echo "$uname - $h1, $h2, $h3, $h4, $h5<br />";
$checked = '';
} ?>


But when the webmaster has to check the numbers when the drawing has been draw, it will the a long time because the numbers are not, from low to high.

I mean..
instead of admin - 25, 21, 9, 26, 8
it should be admin - 8, 9, 21, 25, 26

Does anyone know how I can make this? Then the webmaster could type in 8, 9, 21, 25, 26 in the search this page in the internet explorer and check if there was any matchs.

Hope someone can help me with this.

Login

Who's Online

125 user(s) are online (76 user(s) are browsing Support Forums)


Members: 0


Guests: 125


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits