Jump to content

m33tmn

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by m33tmn

  1. use 2 cols: Hits and x, hits has auto-incresementeverytime someone sees the page, it will add something to the table. and then you just use the query Select count(x) fraom yourtableand it will give the number. OR if you need more than one counter (meaning 2 different articles) you can put different numbers into x. so for example article 1 will add 1 to the table, and article 2 will add 2 to the table. then you can count them the same way, just add "WHERE x = 1" or "WHERE x = 2"

  2. Server Error in '/' Application.--------------------------------------------------------------------------------Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: BC30289: Statement cannot appear within a method body. End of method assumed.Source Error: Line 3:    <DIV align="center"><STRONG><FONT face="Verdana" color="#ffffff" size="4">National Prison</FONT></STRONG>Line 4:  <%Line 5:  Function RandomNumber(intLowestNumber,intHighestNumber)Line 6:      Do Until (RandomNumber >= intLowestNumber) And (RandomNumber <= intHighestNumber)Line 7:      Randomize Source File: c:\inetpub\wwwroot\X.aspx    Line: 5
    detailed information also available, if needed...thanks, marc
  3. and it still gives me errors.....

    <%Function RandomNumber(intLowestNumber,intHighestNumber)     Do Until (RandomNumber >= intLowestNumber) And (RandomNumber <= intHighestNumber)     Randomize     RandomNumber = Int(Rnd * intHighestNumber) + 1LoopEnd Function%><DIV STYLE="position:absolute; LEFT: <% =RandomNumber(5,600) %>px; TOP: <% =RandomNumber(5,600) %>pt">Hello</div>

    doesn't work.... server error in '/' application.... blahblah i'm sure you know it :)thanks, marc

  4. Hi all, i was hoping someone here could help me, i'm very unexperienced with ASP but i need to change something in a .aspx file. i want an object to be displayed at a random position. generating random numbers got me completely stuck. i currently have:

    <DIV STYLE="position:absolute; LEFT: 145px; TOP: 25pt">

    i would like to change 145 and 25 to 2 random (different) numbers between 5 and 600. could anyone help me with that? if you know asp it can't be hard :) thanks, marc

×
×
  • Create New...