Jump to content
MakeWebGames

KyleMassacre

Members
  • Posts

    2,921
  • Joined

  • Last visited

  • Days Won

    48

Everything posted by KyleMassacre

  1. So if something were to happen on your end like you forget to pay your bill, DDoS attacks, or even scheduled maintenance, the consumer would be left in the dust for the time being?
  2. tl;dr; :p   Lets say you run $r in a loop but $r returns false, how would you handle that? This is why it is a bit better in most cases to query your database then fetch the results seperately: //Query our db $q = $db->query("SELECT * FROM users WHERE userid=$userid"); //Are there any rows from our query? if($db->num_rows($q)) { //Yes, lets loop through them $results = array(); while($r = $db->fetch_row($q)) { $results[] = $r; } echo $results."\n\r"; } //Nope, no rows lets inform them else { echo "No results found!"; }   Opposed to: $r = $db->fetch_row($db->query("SELECT * FROM users WHERE userid=$userid")); results = array(); while($r) { $results[] = $r; } echo $results."\n\r";   In all honesty I think the first one looks much cleaner and easier to read even though its more than twice the lines but you have more control over the output much easier than stacking the methods together
  3. Well damn, how can we miss that lol good eye. Regardless there is too much repeated code. Using in_array() to search an array for a key/value pair would probably IMO be the best way - - - Updated - - -   fetch_row() is *_fetch_assoc() if you are and should be using the $db object and not mysql* objects/functions
  4. Wouldn't know lol, I have never tried it that way but now that you mention it seems like it wouldn't work
  5. Well yes and no if you want it easy to read I suppose in reality, though I have never tried, you could do something like this: while($result = $db-fetch_row($db->query("SELECT `soomething` FROM `somewhere`))) { //continue with your loop } To me that looks ugly as hell and you may lose some functionality and control of certain aspects of your results. For example what are you to do if your while() statement returns FALSE? You see, now you lost control unless you wanted to throw it in a try/catch block instead of a simple if/else block. That is why (for this example) fetching your query right off the bat may not be the best idea because you lose all your data in the loop outside of the loop if you require to use it
  6. Yep :p sorry I'm just on my phone so I couldn't really get into the details and I should have said this was based off [MENTION=64603]Sim[/MENTION]'s post a little bit
  7. $items = array(84, 87, 90, 93, 96, 99); //your db query.... //you while statement.... if (in_array($res['inv_itemid']) && $res['inv_qty'] == 0) { echo "Empty"; }
  8. 0 => false, ! => false so that's why you are getting it So you need to find where th variables are declared and fiddle with those
  9. As you wish
  10. Does your console say anything? That will generally tell you any and all errors you get
  11. What's wrong with it? tl;dr;
  12. I think you need to switch out the area for the login box with the cityscape section. It just doesn't look right there and maybe add some other colors to make it pop
  13. In Photoshop there is a background eraser tool that does wonders. It pretty good at picking up the difference between foreground and background but be careful not to get too crazy because it can leave a grayish outline around your image
  14. It just seems aittle but too plain. I think what it may need is some sort of textures and some more color. Maybe what else you can add in there is maybe a place for screen shots or top players or anything of that nature to take up some space.
  15. I'm probably going to get shot for saying this but here it goes: Dont worry about it as long as you can get your game setup for the time being. If it lets you install the script then go for it
  16. Here it is: http://viraltrafficdominator.com/
  17. You can give away your license for free if you wish but that means you don't get to use it anymore. Plus he's not looking for it for free from someone, he is looking to buy judging by him saying "let me know the offer of price". Otherwise there wouldn't be a license transfer in your MCC account
  18. My last post still stands. You need a new card you can at least utilize the DVI cable
  19. Try opening up your case and see if your GFX card is plugged in all the way/properly. If that's not the case then send your computer back or buy a new GFX (preferably one that doesn't support that ugly blue cord, go hi-def already)
  20. Here's a tip for ya, you don't need the filename as long as it's in the same file like so: <a href="playerads.php?action=something">Click me</a>   is the same as: <a href="?action=something">Click me</a>   also maybe you should reconsider some of your data types Int(11) and bigint(11) for some/most/all of those are not really reasonable and/or needed. You can get away with much smaller types. Just for reference int(11) can go to 2 billion And much higher if it's unsigned. http://dev.mysql.com/doc/refman/5.0/en/integer-types.html Another thing is maybe you can make use of timestamps instead of a cron?
  21. No it's Great Britain Pounds
  22. That would be GBP
  23. I deleted it
  24. [MENTION=69993]IBRMAI[/MENTION] That is a little off topic. You can try the collab thread with that along with solid proof just so it doesn't get all nasty with he said/she said non-sense
  25. It seems to be the same as the Hauppauge HDPVR that I have but mine is the older one and I believe yours does HDMI which would be a lot cleaner than the mess that I had
×
×
  • Create New...