Jump to content

saltedm8

Members
  • Posts

    146
  • Joined

  • Last visited

Posts posted by saltedm8

  1. 6 months, maybe a year,

     

    2 lottery draws a week 52 weeks in a year = 104 combinations + combinations already used max 104 = 208 combinations at the end of the year within that file, after that as one is added an older one is removed

     

    that's how I understood it anyway

     

    The way it was explained to me was that the chances of the same combination popping its head again are something like 45 million to one

  2. yes, but its for a client who wants it as a feature on their site.. I personally don't even play it, waste of money

     

    he wants to base it off of mathematical theory that if you use every number every week eventually you have to win, or something like that.. sounds silly but as he is the paying client, I am not going to complain

  3. If you both enjoyed that I could let you know my next step

     

    I need to take those numbers and match them against manually entered numbers in another file, if any of those lines ( the first 6 numbers ) sequence matches a sequence in that file I need it to randomly change again.

     

    it would be ok to have a warning to refresh the page if you wanted to do it like that if it found a match

  4. hi, I am trying to create 7 lines, out of 49 numbers, each line must have unique numbers not seen in any other line so that every number out of 49 has been used in one of those lines, I also need them to be in order, lowest to highest except for the last number which needs to be completely any random ( as long as its not elsewhere in the 7 lines and its one of 49)

     

    I have made an attempt,

    <?php
    
    function code(){
     for ($i=1; $i<=7; $i++){
     $one = mt_rand(1, 49); 
     echo $one;
     echo ' ';
    }}
    
    function lines(){ 
         for ($i=1; $i<=7; $i++){
         code();
     echo '<br/>';
    }}
    
    lines();
    
    ?>

     

    but I am seriously failing at producing every number from 1 to 49 throughout those 7 lines and of course failing at ordering them with the random at the end that is not in order..

    sorry if this sounds confusing but I would appreciate any help, thanks

  5. thanks tried

     

    <?php
    $con = mysql_connect("localhost","xxxxxxxx","xxxxxxxx");
    if (!$con)
      {
      die('Could not connect: ' . mysql_error());
      }
    
    $go = 'SELECT count( webproca_vb ) as total FROM `vbpost` WHERE `userid` =1155' ;
    
    $result = mysql_query($go);
    
    echo $result ;
    
    mysql_close($con);
    ?>

     

    just getting a blank page, how can I see the result in number form ? thanks

  6. Hi, I am in urgent need of some urgent help

     

    I need to connect to my database and count the amount of posts by user id 1155 then display the number of posts

     

    SELECT * FROM `vbpost` WHERE `userid` =1155 ;

     

    I am really sorry to ask such an easy one but I am not confident with php and I need this quite quickly

     

    also if anyone knows vbulletin 4, maybe you could include a query to put that number into a users post count ( saltedm8 )

     

    table name webproca_vb

     

    thank you

  7. would anyone please help me work out why this is not working and even if I use the || operators it still wont work 

     

    <?php 
    
    $referer = $_SERVER['HTTP_REFERER'];
    
    if ($referer != 'http://digitalpixels.co.uk/portfolio' ) 
    header('Location: http://digitalpixels.co.uk/404/') ;
    
    if ($referer != 'http://digitalpixels.co.uk/windscreen-repair-company' ) 
    header('Location: http://digitalpixels.co.uk/404/')
    
    
    ?> 

     

    thank you

  8. A few of the issues.. it would not surprise me if there were lots more

     

    Search engines will not be able to properly spider a framed site. Search engines have a tough time with frames. Using frames either prevents them from finding pages within a website, or it causes them to send visitors into a site without the proper frame "context" being established. Therefore, if a visitor comes into the site from a search engine link, the Web page may be on its own without reference, links, or other means to connect into the rest of the site. Unless the site developer allows for this situation (such as providing links to the main page of the framed site), the visitors will not have any navigation or reference into the site.

     

    Bookmarking a framed page within a Web site generally won't work, and typically only the main page of the site can be bookmarked. There are workarounds within the HTML, but they are not often used. For the same reason that bookmarking a framed page within a site generally doesn't work properly, the URL for the entire site appears only as the main page. This can be confusing, especially for newbies to the Internet.

     

    Not all browsers support frames. Therefore, to maintain accessibility, a framed and non-framed version of the site is recommended by the W3 Consortium guidelines.

     

    Often framed Websites do not close properly when the visitor goes to another Website, thus keeping the previous Website's frames around a different site. This can be frustrating and confusing for web surfers. The Web designer must use proper markup within the site page links to avoid this problem.

     

    Framed sites can be problematic for smaller browser windows or laptops, or those preferring to keep their browser windows relatively small.

     

    ( then again, using tables unless the content is tabular information is not quite as bad as using iframes, but bad none the less )

  9. try putting a clearing div as the very last thing before the end of the container.. so under your main content like this

     

    <div id="container">
    <div id="inner-container"></div>
    <div id="header"></div>
    <div id="main-content "></div>
    <div class="clearboth"></div>
    </div>
    <div id="footer"></div>
    

  10. you have used

     

    background-image: url(.../images/background.jpg);

     

    it should be

     

    background-image: url(../images/background.jpg);

     

    ( just 2 dots ) if that is what is wrong

  11. I am having a little problem understanding bits of your code.. as in why you have done certain things, but I can say that your main area has a margin-right which stretches the full width of your container area.. so its pushing the sidebar down

     

    unfortunately I don't think its going to be a case of simply removing the margin right, as when I tried, it messed up even more..

    as you coded it, you might know how to fix that problem allot faster than I can come across it.. Personally I would start the layout again, its just a bit of a mess as you have loads of html errors.

×
×
  • 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.