Jump to content

ScottWilson

New Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by ScottWilson

  1. ah fixed it cheers
  2. OK ive placed the code and it counts fine bar the first which has the Stack error box in? am i placing the $count = 1; in the wrong place Ive placed the other part in the table cell?
  3. I tried this $count = 1; echo $count++; But it just displays 1 in every row.
  4. I have this code: <td><form action="" method="post" name="TableData" class="style5" id="TableData"> <table width="800" border="0" bordercolor="#000000" background="Assets/Tablebar.gif"> <!--DWLayoutTable--> <tr> <td width="183" height="20" align="center"><div align="center" class="style11 style1"></div></td> <td width="317" align="center"><div align="center" class="style11"><span class="style2"><?php echo $row_TableData['UserID']; ?></span></div></td> <td width="136" align="center"><div align="center" class="style11"><span class="style2"><?php echo $row_TableData['UserName']; ?></span></div></td> <td width="136" align="center"><div align="center" class="style2 style11"><span class="style11"><span class="style2"><?php echo $row_TableData['Score']; ?></span></span></div></td> <td width="103" align="center" valign="top"><span class="style2 style11"> <?php for($i = 0; $i < $row_TableData['TourWins']; $i++) { echo '<img src="Assets/Medal.gif" />'; } ?> </span></td> </tr> </table> </form> </td> The Table displays fine and it sorts fine win Highest to lowest score, I am wanting to put place numbers Like 1,2,3,4 etc in the first Colom which is in bold, but I don't know what to use. any help would be great.
  5. oh yer ddduuuuurrrr lol it works now
  6. OK I wrote this bit of code <? for($i = 0; $i < $row_TableData['TourWins']; $i++) { echo '<img src="Assets/Medal.gif" />'; } ?> Its meant to be displaying the img src a number of times defined by the number in the 'Tourwins'. so if there's a 2 in the database TourWins then the Medal.gif will echo twice depicting the 2 tourwins but all I keep getting is this: '; } ?> Any ideas
  7. Well thats helpfull....for a forum thats designed for helping, theres a great lack of it.
  8. Thats the thing I havent attempted to write the code for it yet, Iam scratching my head on how to tackle it.
  9. Ok here we go I have my database with User Id, User name...etc one of them is a score, I have a page which I want to be able to go to and input two user IDs tick one indicating they are the winner then the server goes to the database matches them 2 user id numbers gets there scores and runs a peace of math adjusting each users score depending if they had won or not? In the most simplist of explaining can anyone help. I am using Dreamweaver 8 and my hole site is in php. I am setting up a League system online using the ELO system of working scores out.
×
×
  • 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.