Jump to content
MakeWebGames

bluegman991

Members
  • Posts

    394
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by bluegman991

  1. Created a little function for you. Haven't really tested using mutli line mysql in php so I don't really know if it's only available using the mysqli extension or if it's also available using the mysql extension. Not sure whether or not it cache's either so I added a drop function if exists query also. If it does cache then you should only have to define the function once, then you can execute the function over across different sessions and connections. If not you will have to define the function in every connection. Well here goes!   DROP FUNCTION IF EXISTS my_rand; CREATE FUNCTION my_rand(min INT(11),max INT(11)) RETURNS INT(11) DETERMINISTIC RETURN FLOOR(RAND()*(max-min+1))+1; SELECT * FROM `mytable` WHERE `mycol`>=my_rand(10,100); INSERT INTO `mytable` VALUES(val1,my_rand(10,100),val3,my_rand(10,100)); UPDATE `mytable` set `mycol`=my_rand(10,100) WHERE `mycol`=myval;   Also added a few query examples.
  2. Try this out. Tested and matches all of your valid examples (except http://www.test.com?searchblah&blajjj which should be http://www.test.com/?searchblah&blajjj), and does not match all of your invalid examples. $reg='/^http\:\/\/(?:[a-zA-Z][a-zA-Z0-9]+)(?:\.[a-zA-Z][a-zA-Z0-9]+)*\.(?:com|co\.uk|co)(?:\/.*)?$/';
  3. Couldn't have said it better myself. Unless you have collected their personal address or phone number email is your only way of contacting a user when they are not visiting your site. You need some way to alert them of things like TOS changes, inactive account deletion, password change request/notifications, suspicious activity notifications, breach of TOS notifications. It's pretty much the only way to formally let the user know of something that they may not have been aware of. Email providers usually never outright automatically delete emails unless you have them on your personal black-list. And they usually don't throw the email in a spam folder unless it's from a black-listed IP. Half of them won't even do that. They let you decide what IP's and domains should be black-listed. If you don't trust email verification's then you probably shouldn't trust snail mail, UPS, FedEx and others since there is no guarantee that it won't get lost in shipping/processing.
  4. Ok... So your a forum lurker... You lurker who do you think you are??? No, I'm kidding... On a serious note, I second most of what he says. I too am guilty of only coming here to read and not write, hoping that there will be a post about something I didn't know in the programming world. The only reason I don't post though is because I'm a bit more secretive. I should probably add on that php & mwg was my gateway to realizing that I wanted to pursue a career in computer science, which i am currently doing, being a part time high school-er part time college goer, and part time worker. (Will be finished with high school this year, so will finally have more time for "On my own projects".)
  5. To append to your "why?" Because the depth of a minecraft mod can be just about infinite, so you have little to know limitations. I haven't really looked but i'm sure people have made some simple quest system for their own servers. But, I think with the knowledge you already have, and the speedyness of your coding, that you could make a server with 10x better content than most other people who manage/run their own servers. Edit: Since we have a differen't point of view, I for one still would be interested to see how great of a mincraft server you could make. Not saying you should drop this project but consider that as one of your next projects in the future.
  6. My reason for suggesting a minecraft mod is because, I see no reason for playing a game like this over minecraft. Even if it did have quests and all the extras. You can always turn minecraft into an applet, that way it's still a browser game. :p Not saying I approve, but you could also set your server to offline mode so people who don't have minecraft could also play. By fail, I'm speaking specifically in the sense of popularity and widespread of usage. I understand if your doing it as something to learn from, i'm just saying if it was something that you wanted to be played and used by many people, then you should think about my suggestion. If not, then continue as it will serve a great learning purpose and maybe later down the line you can make another virtual engine (besides NEaB) or game that is widely used/played.
  7. I really don't think a sky pov suits your game. I would try either first person, or at minimum 3rd person with a pivoting camera. I know you take pride in having the things you make 100% by you, and making the client side of your games browser dependent only. But I think you would be better off modding minecraft. All the things that you plan on adding to your game can be done by making modules for a bukkit server (custom gfx(tiles, characters), quests/missions, custom made skills and levels, custom monsters, interact-able npcs, player owned areas, you could even add guns and cars if you'd like). It would save you a lot of work, reduce the odds of failure, and comes with a large client base that would be interested in playing it. You could even sell a kit to turn minecraft into the game you want it to be.
  8. Don't worry there are scripts and pre-made programs out there to do that for him. ;)
  9. Wow! First good site review I've seen in these forums, and the first "review my site" thread where the site looks like it actually had effort put into it. I will have to check this site out later.
  10. SuspectedGangsters.com MAFIASECRETS.com mafiadreams.com Copyright © Mafia Underground Mafia-Donz Quick someone call the Guinness World Records this guys about to make a world record for most names for one game!
  11. Umm... Did you ok that with your boss???
  12. Nah, you would have to put a list of mp3 file paths in an array and iterate through them.
  13. Report it or you can be charged with failure to report a death.
  14. Lol here's your key. button.onclick=function() { music('track4'); };
  15. Imma wild boi!!!
  16. Are you getting any errors at all? What happens when you run this code? It looks like on line 36 you have 1 too many closing parenthesis. Edit: Looking at line 36 again. I noticed the query isn't even being executed. Because you are attempting to define a property, instead of calling $db->query as a method. That being said try this as line 36 $q=$db->query('SELECT `username` FROM `users` WHERE ( `userid` % 2 = '.( array_key_exists ( 'odd', $_GET ) ? 1 : 0 ).' )');
  17. Lol this is what you get for $70 a month in my area. And this is a good day. Usually dl speeds are around 25mbps. I bet a lot of you can get/are getting the same thing for cheaper.
  18. mysql_query requires parameter 2 to be a connection id, if there is no previously opened connection in your current session. So with that being said... Are you connecting to the database. (Is the file where you connect to your db being included or are you connecting in the current file?)
  19. Lol. You don't care? Well you should, because you could be fined and/or sued for a hefty amount, just for using someone else's copyrighted work without consent.
  20. The software that is built in only allows for your desktop to be taken control of. If he is not using a windows professional or windows ultimate os then he won't be able to make use of the built in software. Because the basic os(Wndows Home Premium) doesn't come with the ability to take control of another desktop.
  21. :lol: I think duck face was suppose to be a "cute" way to hide their teeth.
  22. Since you put it that way... No one cares about the uk since it's full of buck tooth people who don't brush their teeth.
  23. Only really use my phone for talking & texting & games when i'm bored so not much to say about it's performance on phones. As for hotspot usage. I do a but of gaming so 3g isn't really an option for me because of it's bad latency. And 4g, it's not covered in my area yet. (lol t-mobile can't even sell phones here because of it)
  24. It could be because megaupload actually hosts the pirated files on their servers. While pirate bay and other alike torrent sites use p2p to transfer files.
  25. There are many different methods that people use to make bots/macros. It can be posting/querying a page via cURL, ajax, etc... It can be an auto clicker/typer acting as if someone is actually using the computer. It can also be someone injecting javascript through the website from the url bar (or if you're using firefox, the js developers console or whatever it's called) by sending keypress,mouse down/up, and any other action events needed to do tasks. If you really want to crack down on bot's/macro users you need to add code that will inconspicuously study their actions to determine if they are a bot or not, then take action when and only when you are sure they are using a macro or bot.
×
×
  • Create New...