Jump to content

JonnoTheDev

Staff Alumni
  • Posts

    3,584
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by JonnoTheDev

  1. All the functions mentioned above are used in my original example
  2. Simpler to have 1 array rather than a multi-dimensional array i.e <?php $array = range('A','C'); $keys = array_keys($array); shuffle($keys); // display the shuffled array keys print_r($keys); // use the keys to restore the string for($x = 0; $x < count($keys); $x++) { print $array[$keys[$x]]; } ?>
  3. Antivirus
  4. This is highly inefficient and not a normalised structure. You SHOULD have a table containing a list of interests, a table containing a list of users, and a table joining users to interests i.e users ====== userId name interests ========= interestId title usersToInterests ================ id userId interestId Lets take 1 record from users: userId: 1 name: Neil Lets see the interests available: 1 Football 2 Movies 3 TV 4 Computers 5 Golf OK, now lets relate user above to Football, Movies, and Golf: 1 1 1 2 1 2 3 1 5 You can see that userId 1 has the interests 1,2,5 Your query should join the corresponding tables
  5. Is it the free one? Maybe time to get a better AV or tweak the settings, turn all the shit off that you dont need. I use Kaspersky which doesn't cause any problems. It warns when I need to update it so I just set it off when I go for lunch or whatever.
  6. No, you are better creating a relational table i.e people ===== id name eyeSightScoreId eyeSightScore ============= eyeSightScoreId title So in the eyeSightScore table I have the following records 1 20/20 2 20/200 3 Counting Fingers 4 Totally Blind In the people table I have the following records 1 Joe Bloggs 3 2 John Doe 4 3 Sue Smith 4 4 Paul Smith 2 The tables are related on the field eyeSightScoreId So If I want to find all people who are totally blind I run the following query SELECT name FROM people WHERE eyeSightScoreId=4 If I want people who are less than 20/20 vision I can run the follwing query SELECT name FROM people HAVING eyeSightScoreId IN(2,3,4)
  7. Its just a software update agent that runs periodically. Just go through your apps like apple quicktime and make sure you take any checks out of boxes that say, 'automatically check for updates' I would also launch msconfig and look through your startup programs. Remove checks from any that you dont know what they are. Background startup apps usually slow shit down.
  8. There wont be a packaged script as such as what you describe is a very simple task to code yourself. Any beginner php book will explain how to validate forms and send email.
  9. The teachers should be sacked for being complete retards! Anyone seen Donnie Darko where that idiot teacher does that fear & love exercise? I bet the teachers at this school are the same! What the fu** is the world coming too?
  10. Keldorn, this is for you [attachment deleted by admin]
  11. Why would customers want to know what you are doing via twitter or by adding you as a friend on facebook? I don't think customers would want to know if you have just gotten out of the shower or want to see your holiday snaps! Why not create an RSS news feed on your website that users can bookmark or send weekly newsletters to subscribers, etc..
  12. This is not true. The = operator assigns a value, it is not a comparison. You are thinking of ==. The mysql_fetch_array() function returns an array of data from the database query for each row. As there are more than 1 rows returned, in order to iterate through them the while loop is used. So in simple words each row from the database is assigned to the variable $rows (should have used $row really) as an array until the end of the result set is reached.
  13. Looks a bit geeky for my liking with the whole thing being made with computers. Probably wait for the DVD.
  14. Wowowowowooo, Friday Again
  15. Yeah, the statement before is rubbish. A friend of mine develops apps that are rolled out across all councils in the UK. They tie into websites and all kinds. All done with Java.
  16. nice. I also remember writing code on my Sinclair ZX Spectrum 128k. It think this was the first time I experienced computer programming. Everyone loves this program. 10 PRINT "Hello World" 20 GOTO 10
  17. Click on Start >> Settings >> Control Panel >> Regional Options Where you see the list under Location, select: Afganistan That should do it.
  18. It was Radium that was discovered around WWII. As we all know it is a radioactive substance that is lethal, however back in the day it was used in face creams, toothpaste, watches, and god knows what else until people started becoming sterile and dying.
  19. I loved pascal. It was so easy.
  20. Why not simply display a graphic on the screen like an animated gif loading bar or something when the form is submitted. Can be done easily with a bit of javascript, HTML and an image
  21. To me, "cool stuff" is beer that isn't warm.
  22. http://www.thesitewizard.com/archive/feedbackphp.shtml
  23. If you learn Java you could pick C# up in five minutes anyway.
×
×
  • 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.