Jump to content
MakeWebGames

Spudinski

Members
  • Posts

    1,731
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Spudinski

  1. Re: Counting (nr game) 1852
  2. Re: Local Sever On Linux Google "LAMP"(Linux Apache MySQL And PHP), you can also then install things like python, perl or even pgsql. This how to really helped me allot when I was doing it for the first time: http://lamphowto.com
  3. Re: 3 Word Game but then he
  4. Re: irc requirements ? If you want to have it in your browser itself, you will need to get Java. You can get it at SUN's website: http://www.sun.com/java Then just click the "Chat" link on this website.
  5. Re: Which Is Best Ofcourse it's going to be The Simpsons... :p
  6. Re: Money sql injection   Why you say that? I've seen a ton of folks come into cove of pirates and try to cheat the game, many of them using, or attempting to use mysql injection. Unfortunately, an answer to how to stop people from cheating your game would require some diagnosing. Once would need to know what they are exploiting before that can be fixed. You could find a sorts of code for validating input/protecting against sql injection, but if there are 100 places in you code that could potentially be open to such attacks, are you going to go through each one? You should of course go through them all, but I suspect you are either not a coder, or you are "eh" at coding and thus prolly don't have the necessary skills to find/fix the problem on your won. Therefore, my advice is to hire someone to fix it for you.   Sure, why not dive into securing you game against sql inject and such. But by my post, I was not ruling out the possibility of a vulnerability being abused by someone. A main problem with programmers these days are that they are so focused on securing their websites against any type of vulnerability that could be exploited by someone,they tend to miss the most common of mistakes they make while structuring the database or building their scripts. But I agree with you, Dragon_killer123 should get a professional to inspect the code thoroughly.
  7. Re: *+*Amazing New Explore *+* [V1]   The following applies to any element: If the class of the element is not found, it will use an original one. That means that if you have table { ... } already, and the element class something like table2 when it is not found, it will use the original one.
  8. Re: Money sql injection IT could be that your crime rates/payouts are set to high, thus resulting in your users having a ton of money. Just set them lower, I doubt someone is trying anything wiht your website. :)
  9. Re: [FAQ] Developing locally on your own local PHP/MySQL/Apache server   What are the errors, normally it is supported across all distributions of the OS. It might be a simple problem like an incorrectly configured startup script or config file.
  10. Re: Mailing Seanybob has made an Ajax Chat before. You can find it here: http://www.mccodes.com/freebies_ajaxchat.php
  11. Re: Favorite TV shows   Simpsons War at Home My Name is Earl CSI Miami
  12. Re: [FREE] Total time logged in [v1 + v2] Why not just use the field that holds the time the user signed up? It would be much easier to do, and not as complex.
  13. Re: [Competion Questions] Recursive SQL? I have also tried, but haven't succeeded. I get to the point where it reconizes that it has child boards, and print them. But I have a problem assinging the correct child boards to the correct boards. Here is a raw array that my script produced: Array ( [Programmers and Webdev Zone] => Array ( [php/MySQL] => Array ( ) ) [php/MySQL] => Array ( [0] => MySQL [1] => Beginning PHP [2] => PHP FAQs [3] => PHP Databases [4] => PHP How-To [5] => Pro PHP [Moderated Pro PHP] => Array ( ) ) [Moderated Pro PHP] => Array ( [0] => Pro Discussion ) [Competition Questions] => Array ( ) [Answered Questions] => Array ( ) )   Here is my current script if anyone wondered: <?php mysql_selectdb('test', $connection); $depth = 8; function get_childboards() { global $connection, $posts, $topics, $names, $depth, $last_id, $q; $query_txt = 'SELECT * FROM `forums` WHERE `Parent` = \'' . $last_id . '\''; $query = mysql_query($query_txt); while($c = mysql_fetch_assoc($query)) { $query2_txt = 'SELECT * FROM `forums` WHERE `Parent` = \'' . $c['ID'] . '\''; $query2 = mysql_query($query2_txt); $posts[$q['Name']] += $c['Posts']; $topics[$q['Name']] += $c['Topics']; if (mysql_num_rows($query2) != 0) { $names[$q['Name']][$c['Name']] = array(); $q = $c; $alt = $c['Name']; } else if(!empty($alt)) { $posts[$q['Name']][$alt] = $c['Posts']; $topics[$q['Name']][$alt] = $c['Topics']; } else { $names[$q['Name']][] = $c['Name']; $posts[$c['Name']] = $c['Posts']; $topics[$c['Name']] = $c['Topics']; } $last_id = $c['ID']; } $depth--; } echo '<table><tr><th>Forum</th><th>Topics</th><th>Posts</th></tr>'; $query_txt = 'SELECT * FROM `forums` WHERE `Parent` = 0'; $query = mysql_query($query_txt); while($q = mysql_fetch_assoc($query)) { $posts[$q['Name']] = $q['Posts']; $topics[$q['Name']] = $q['Topics']; $names[$q['Name']] = array(); $last_id = $q['ID']; while($depth != 0) get_childboards($q); } foreach($names as $name => $array) { echo '<tr><td>[-]' . $name . '</td><td>' . $topics[$name] . '</td><td>' . $posts[$name] . '</td></tr>'; foreach($array as $cname) { if (!is_array($cname)) echo '<tr><td>[+]' . $cname . '</td><td>' . $topics[$cname] . '</td><td>' . $posts[$cname] . '</td></tr>'; } //while(!is_array($array[0][0])) print_childboards($array); } echo '</table>'; ?>
  14. Re: hi everyone Hi, and welcome to CE Forums! I like you little website you have going there. (:
  15. Re: Mailing Care to elaborate? I really can't see what you want here.
  16. Re: Guess the next poster Yep... Matt next?
  17. Re: Counting (nr game) 1843
  18. Re: Which File Extension are You? Atleast someone is a .gif with you... Edit: Now that I think of it, I am pretty random... better take that quiz again.
  19. Re: Large Number.... HTML elements will automatically expand to accommodate text, thus the CSS properties min-width and max-width are there. Try adding the number_format function to the will value, you could use the user-defined money_formatter but I see no point in using that if you can use an internal function that does almost exactly the same. Use this: <?php include "globals.php"; $mpq=$db->query("SELECT * FROM houses WHERE hWILL={$ir['maxwill']}"); $mp=$db->fetch_row($mpq); $_GET['property']=abs((float) $_GET['property']); if($_GET['property']) { $npq=$db->query("SELECT * FROM houses WHERE hID={$_GET['property']}"); $np=$db->fetch_row($npq); if($np['hWILL'] < $mp['hWILL']) { print "You cannot go backwards in houses!"; } else if ($np['hPRICE'] > $ir['money']) { print "You do not have enough money to buy the {$np['hNAME']}."; } else { $db->query("UPDATE users SET money=money-{$np['hPRICE']},will=0,maxwill={$np['hWILL']} WHERE userid=$userid"); print "Congrats, you bought the {$np['hNAME']} for £{$np['hPRICE']}!"; } } else if (isset($_GET['sellhouse'])) { $npq=$db->query("SELECT * FROM houses WHERE hWILL={$ir['maxwill']}"); $np=$db->fetch_row($mpq); if($ir['maxwill'] == 100) { print "You already live in the lowest property!"; } else { $db->query("UPDATE users SET money=money+{$np['hPRICE']},will=0,maxwill=100 WHERE userid=$userid"); print "You sold your {$np['hNAME']} and went back to your wooden hut."; } } else { print "<center>Your current property: <font color=blue>[b]{$mp['hNAME']}[/b]</font> The houses you can buy are listed below. Click a house to buy it. "; print "[url='estate.php?sellhouse']Sell Your House[/url] "; if($ir['willmax'] > 100) { } $hq=$db->query("SELECT * FROM houses WHERE hWILL>{$ir['maxwill']} ORDER BY hWILL ASC"); while($r=$db->fetch_row($hq)) { print " <table cellspacing=2 class='table'><tr style='background:gray;'><th>House</th><th>House Price</th><th>House Will</th><th>Buy?</th></tr>"; $hq=mysql_query("SELECT * FROM houses WHERE hWILL>{$ir['maxwill']} ORDER BY hWILL ASC",$c); while($r=$db->fetch_row($hq)) { print "<tr><td>{$r['hNAME']}</a></td><td>£$t".money_formatter($r['hPRICE'],'')."</td> <td>" . number_format($r['hWILL'] . "</td> <td><a href='estate.php?property={$r['hID']}'>Buy</tr>"; } print "</table>"; } } $h->endpage(); ?>
  20. Re: Templates Google Photoshop tutorials, you will find a few good websites with web design tutorials. When you know html, you should know what to do after you have completed the design. To learn HTML, goto: http://www.w3schools.com/HTML/
  21. Re: [mccode][v1]+[v2]Automatic total cost calculation in shop buy. Not really, a web developer should always take into account the fact that some people do not have javascript enabled. But the average gamer has javascript enabled, and doesn't know of better. I'm not saying to take advantage of that, but it does help with game developing, I have seen a fair share of games that uses javascript for just about everything, and they are doing quite well in doing so. So my verdict on this would be, for games, sure go ahead, equip your game with ajax, and join the realm of web 2.0 websites.
  22. Re: how to convert a register page The only guide I can find now is this one: http://criminalexistence.com/ceforums/h ... 502#p18502 Hope it helps!
  23. Re: [mccode][v1]+[v2]Automatic total cost calculation in shop buy. Very nice to see that people begin to make use of javascript in websites. (: Keep it going Will...
  24. Re: Guess the next poster Nope.. Nyna, I see her in the "viewing this topic" list. d:
  25. Re: 3 Word Game a old lady
×
×
  • Create New...