Jump to content

saltedm8

Members
  • Posts

    146
  • Joined

  • Last visited

Everything posted by saltedm8

  1. lol, I completely agree lol thanks for that, I will dress it up a little and shove it in his design
  2. 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
  3. it does not matter, he wants to only have to open it and paste it in, I was thinking about an array
  4. 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
  5. 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
  6. lol, thank you too, they both work a treat.. maybe I will use both, thanks again
  7. wow, that is so wicked, thank you very much, I still have a lot to learn when it comes to php
  8. 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
  9. I am in debt to everyone who replied, thank you very much,, worked
  10. ahh, no database selected ? how could that be I thought this did that $go = 'SELECT count( webproca_vb ) as total FROM `vbpost` WHERE `userid` =1155' ;
  11. thank you very much.. why would I get this ? Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/webproca/public_html/aaaaa.php on line 14 no results
  12. 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
  13. 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
  14. 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
  15. do you have the rest of the code or even better a link to the page in question ?
  16. I have just updated my site http://mediasofa.com and I am looking for comments etc on it thank you
  17. 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 )
  18. the biggest mistake here is the fact you are using iframes
  19. you may think its unnecessary content, but lets face facts.. overflow: auto is very very buggy and how much 'unnecessary content' is it adding ???... one line of code ? .. as if thats going to make a difference ??
  20. 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>
  21. saltedm8

    css

    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
  22. 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.
  23. that is really strange, in firefox and ie6 ( the only browsers I have instant access to ) they look fine [attachment deleted by admin]
×
×
  • 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.