Jump to content

saltedm8

Members
  • Posts

    146
  • Joined

  • Last visited

About saltedm8

  • Birthday 04/13/1981

Contact Methods

  • Website URL
    http://dotvoice.co.uk

Profile Information

  • Gender
    Male
  • Location
    kent uk

saltedm8's Achievements

Member

Member (2/5)

0

Reputation

  1. lol, I completely agree lol thanks for that, I will dress it up a little and shove it in his design
  2. and order them lol
  3. 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
  4. it does not matter, he wants to only have to open it and paste it in, I was thinking about an array
  5. 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
  6. 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
  7. lol, thank you too, they both work a treat.. maybe I will use both, thanks again
  8. wow, that is so wicked, thank you very much, I still have a lot to learn when it comes to php
  9. 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
  10. I am in debt to everyone who replied, thank you very much,, worked
  11. 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' ;
  12. 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
  13. 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
  14. 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
  15. 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
×
×
  • 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.