-
Posts
3,584 -
Joined
-
Last visited
-
Days Won
3
Everything posted by JonnoTheDev
-
All the functions mentioned above are used in my original example
-
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]]; } ?>
-
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
-
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.
-
Would this be easier to do with a php function
JonnoTheDev replied to aeroswat's topic in PHP Coding Help
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) -
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.
-
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?
-
Which PHP Editor do you think is the best? [v2]
JonnoTheDev replied to Daniel0's topic in Miscellaneous
Keldorn, this is for you [attachment deleted by admin] -
Social Media as a Form of Advertising / Reaching out to customers
JonnoTheDev replied to stublackett's topic in Miscellaneous
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.. -
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.
-
Looks a bit geeky for my liking with the whole thing being made with computers. Probably wait for the DVD.
-
Wowowowowooo, Friday Again
-
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.
-
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
-
Click on Start >> Settings >> Control Panel >> Regional Options Where you see the list under Location, select: Afganistan That should do it.
-
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.
-
I loved pascal. It was so easy.
-
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
-
To me, "cool stuff" is beer that isn't warm.
-
http://www.thesitewizard.com/archive/feedbackphp.shtml
-
If you learn Java you could pick C# up in five minutes anyway.