Jump to content

oni-kun

Members
  • Posts

    1,984
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by oni-kun

  1. MD5 is a hashing method, and is one way nothing like an encryption. It can never, never be unhashed. Your error lies here: <form action=\" \" Your action is nothing. How will IE know where to send the POST data? To the homepage? Set it as $_SERVER['PHP_SELF'] or to your processing page.
  2. $q=$_GET["q"]; $con = mysql_connect('localhost', 'peter', 'abc123'); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("ajax_demo", $con); $sql="SELECT * FROM user WHERE id = '".$q."'"; Open to injection, Dunno why it doesn't tell you to sanitize input, but security wise AJAX should be as secure as you make the backend (PHP).
  3. Oh, I think I mentioned my original pass did not work for whatever reason (so I created a new account as the forgotten pass feature doesn't work). Try banning my laughingmanrulez[at]hotmail.com and see if it works. If you want my pass you can test with it as well.
  4. [ot]You should really fix your signature. It's pretty annoying when there's only half of an interesting fact shown :-\[/ot] [ot]Yeah, I noticed some cut off[/ot] [ot]Did OP mean to use ON TOPIC tags? Damn those words starting with the same letter[/ot] [ot]Note to self, don't use too many off topic tags....[/ot]
  5. Nice. If need be remember, you can use ob_start to send a header after pushing content, if need be.
  6. Welcome! I came from a .NET background, but I hardly knew HTML, just never made anything more complex then a static page in a single div. Once I started to get unlazy and jump into much of PHP's features it all resolved itself, so don't worry about the HTML part, it's not needed except really for styling output
  7. Sounds like a reputable store you bought it from!.. (?) Windows 7 has their own keys as the same as the RC. Did you buy the 'upgrade' version ? Because it may use your old serial from say, Vista, and activate it based on that. It should not say you need an XP/Vista serial to activate 7..
  8. Some of the times I view the site (through proxy, tor, or on hand) it times out. May just be a spur of the moment thing.. The guy above me is having the same problem I suppose What do you need critiquing on exactly? The "Advertise Here 468x60 for 220$/month" is very stupid, No one is going to pay that much for impressions. Your flash header is offlined from the navigation bar, and if it is disabled (as many have flash off by default, some by security prefs) the absence of the flash object will break the menu making the text appear off center as so: With: - (also showing off center) Without: A div should be in place that takes up the space, and the flash object inside it. Your bottom part listing popular search terms is kinda out of contrast as well, It looks not so well on the white.
  9. You will need to provide a better example of what you are wanting to do. "Change from green to grey", You may want to look into session variables and swap it with green, thus leaving the other session 'colors' in tact. $_SESSION['color1'] = 'blue'; $_SESSION['color2'] = 'green'; $_SESSION['color1'] = 'red'; if (isset($_POST['option2'])) { $_SESSION['color2'] = 'grey'; //Or to your color table accordingly }
  10. Mhmm. Locally is the best way to go, If you're not knowing of PHP (just on a hunch), then with a WAMP/LAMPP server you can locally run PHP just like you would normally test HTML documents, but through a localhost server such as '127.0.0.1/mysite/file.php'. If you're wanting to Install ubuntu, when finished you can install lampp with the following command: (similar on most distros) sudo apt-get install lampp And to start the server sudo /opt/lampp/lampp start Now /opt/lampp/htdocs/file.php will be accessable and parsed via http://127.0.0.1/file.php
  11. Then work out a pseudo-rank method of how many points they take out of the other player. $opponent_ponts = 600; $your_points = 700; $winning_points = floor($opponent_points / ; //You win: Equates to 75, So give that to winner, take that from loser. $opponent_ponts = 1000; $your_points = 650; $winning_points = floor($opponent_points / ; //You win: Equates to 125, as opponent has higher points, more is taken $opponent_ponts = 1000; $your_points = 650; $winning_points = floor($your_points/ ; //You lose: You only lose 81, as you're lower level etc. etc.. Many games use this method to calculate EXP delta per level. I'm not sure if you want to take less points away if they're higher in score or not. But this is a fairly straightforward example math wise.
  12. Is that all you're using for ranking? Then you can use SQL's limit and desc commands in your query to list the top 5 players for example. It's the only ranking in your example that would make sense.
  13. Yes, I doubt you have PHP configured. Are you viewing the file directly via browser? Or are you doing localhost/to/file.php? "<?phpif( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR'])>" The browser may see that all as one HTML tag (that does not exist, obviously. And only display the stuff after it, Another pointer that you're not running PHP!
  14. Why not define the ranks first? Rank 1: 500 Rank 2: 650 Rank 3: 800 Rank 4: ... If you don't store the rank along with the user, there's no need for pointless data retrieving as it'd be dynamic. If there is a win, authenticate it, update the user's table with the score IF the current opponent has enough to give etc. Kinda straightforward.
  15. The navigation bar at the top is sorta blending in too far with the background. As well, especially if you have longer content (such as the placeholder being displayed) you should fit some clean borders in, As it looks like a mess otherwise. Logos look nice, and the slideshow should work well once it's more defined against better styling.
  16. Agreed. Plus I'm sure any lawyer could poke holes in your (very basic) privacy policy in seconds. I don't even see one (By the way, .. permissions are 1777 on half your folders?.. ).. Your site whodoihate is the example of the pollutions convoluted by the distraction found in the loss of example inutero of the interest confounded by the dissentary lossenge in each of the loud sets. The particles can be dissolved using special methods used in the retorical process of diversion techniques enrolling simple methods such as lateral thinking, base-falling, and perticle-jumping. Further-more there is a floor function in the obtuse linguistics that allow personable attitude percussions including the divergence theory that this library is established on.
  17. Awesome. When I ban someone I usually send them to a 404 or 500, let them think my site isn't worth going on to again, without the possibility of them thinking "Hey, lets change my IP and re-register!"
  18. Generally one would wish to start with Linux, as it's more flexible and functionatic compared to ISS (vs Apache). CentOS is a server OS that is used mainstream for hosts, vps and dedicated, And I prefer it over Fedora (which..costs money.) What are you exactly looking for? There are plenty of good shared hosts out there such as Host Gator, and Lunar Host. If you're looking for amazing quality and support (such as cloud, VPS etc.) Rackspace is where you want to go.
  19. Yeah, the core does do pretty much the same thing anyway with date()'s parsing. Suppose ease over flexability.
  20. http://php.net/manual/en/function.strftime.php The code will be a mashup of IF statements. Strftime does not include any code to calculate st, nd, rd, th. It's more efficient and the offical function to use date, strftime was meant to format locales not calculate a number suffix. EDIT: Salathe, no wonder why there are so many bugs ! JK!!
  21. http://aboutonlinetips.com/wp-content/uploads/2009/11/product-key.png And don't you mean DVD-key? .. If you truly didn't (may be inside package, sticker on back, sticker on case, or separate in manual) then call up microsoft and give them the serial number on the package, and they should give you a key after the proof you purchased it and it will activate as normally intended.
  22. Something tells me you got a crap video card if you bought one without a new motherboard because any new video card uses PCI 2.0 and older motherboards do not have that slot. If anything, you have the standard AGP/PCI (Not 2.0) motherboard? You're wrong. PCI-e 4x, or 1.0/1.1 will pump sufficient bandwidth for a 2.0 card, there is no need to have 2.0 save for a dual 320GTX, and even then you'd have ~4Gbps left over.
  23. C++ (what PHP is built on) has only been out for 27 years Just kidding, good to see use of the good old functions here or there.
  24. There already is a sample of this in the php.net user contributed notes somewhere for web safe colours, although unless you're wanting to include 100+ colours, you should choose an array method as mentioned. $colors = array( 'white' => 'FFFFFF', 'blue' => '0000FF', 'green' => '00FF00' ... ); $user_chosen = strtolower(trim('White')); echo $colors[$user_chosen]; //Outputs FFFFFF if chosen is White, WHITE, white, etc. Blah, quick mockup example.
  25. A correct example would be this: $date = "2010-01-26"; $date_new = strtotime($date); //Returns: January 26th, 2010 echo date('F jS, Y', $date_new); Or simply this: $date = "2010-01-26"; echo date('F jS, Y', strtotime($date));
×
×
  • 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.