Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. I think this is what you're looking for: http://www.socialenginedev.com/home.php
  2. Not a very good friend, now is (s)he... If there's no sign in the "veiw source" then you probably won't be able to tell who made it.
  3. Yeah, don't do this: $sql = "UPDATE `basket` SET qty = '$qty', price = '$price' WHERE item_id = '$item_id'" or die(mysql_error()); Also before looking at your code put this at the top and post if anything is displayed: ini_set ("display_errors", "1"); error_reporting(E_ALL);
  4. What gives you that impression?
  5. I am sure it is still true. But that does not mean that D3 will be free to play online...I mean I bet they will make it a subscription service. If they make Diablo 3 a online subscription service, then I will not be playing Diablo 3 online. I highly doubt they will do this unless Diablo 3 was an MMO (which it is not). Battle.net has always been free and I hope Dablo 3 with be onl battle.net and also free to play online like Diablo 2. This goes the same for starcraft 2, I hope. From what I heard, it will be on battle.net and also free. In addition Blizzard is allowing you to integrate your WoW accounts into battle.net.
  6. Most popular way to debug, echo variables out. Here's your output, do you see what's going on here? $val = 12345; $val=substr($val,0); //12345 $price = explode(",", $val); //[0] => 12345 $tmp = number_format($price[1], 2); //0.00 $total_price += $tmp; //0 echo $total_price; //0 ?> Like Daniel is implying, we need more information. What did you change? What happens? How did it used to work (example)? etc...
  7. Makes sense you get a larger range of skill. No, like every suggested, you need indentation!
  8. You can extend the class you want to use and call the functions with parent. class MyController extends Thumbnail { function upload_image() { //queries and stuff to go here to get all of the form data parent::Thumbnail(200,200); parent::loadFile("filename.jpg"); parent::buildThumb(); } }
  9. The best thing to do is use an IDE. That way you can import standard formatting files and use a hot-key to format it automatically for you (I think in eclipse it's, ctr+shft+f).
  10. Yes, you have no indentation. It's hard to debug that way especially with a lot of code. I tend to use Java's standard of formatting because that's what I learned first and use at work. A lot of different frameworks, applications, and third party systems have their own standards. i.e. Drupal - Coding standards.
  11. They are most likely custom built scripts due to the, "Powered by MySQL and PHP", logos at the bottom. Even so, they could be using different third-party scripts. You emailed them and they said they will not tell you...?
  12. It's because PHP lives on the server and is pre-processed for HTML output. You can't alter PHP code client side like that.
  13. When I played SC1 and D2 battlenet was free... Is this not the case anymore?
  14. Have you ever played them? If not, you're missing out...
  15. - I would suggest putting your logo at the top aligned with the rest of your text. - Try to align your top navigation links with the middle content. - While I'm on the middle content, it's kind of dull. Add some color, containers, stuff like that to liven it up a bit. - The color scheme seems off to me. You have gray backgrounds, and a white main container, then all of the sudden you have orange at the top... Seems out of place. - I guess you try to center everything an the sponsors column takes up a lot of the right side which pushes everything over to the left and looks awkward. - There's not much else to critique, your forum is broken and everything else doesn't have much content. Conclusion: Good start, needs some tweaking and filling in.
  16. And your question is? PS - Use tags around code please, thx.
  17. Try: ORDER BY CompanyName REGEXP '[0-9]', CompanyName
  18. What exactly are you trying to do? What do you want to extract? You should probably read up on, "XPath".
  19. I'm excited for both, although D2 had a tendency to take over my life months at a time... There is no official release date, only predictions. Rumors says maybe late this year for SC2, but who knows, you know Blizzard and their release dates. Guess that's why they don't even give one, cause they never finish on time, but it's worth the wait
  20. It's impossible for us to help if you don't provide any code or helpful information.
  21. Np Like rondog suggested, you should probably use || rather than OR, learn more here: Logical Operators.
  22. So you want something like: Why can't you just create a table with each paragraph being in a separate column while in the same row?
  23. You could have also put the output in tags.
  24. did you add it like this? return mysql_query($query, $this->link) or die(mysql_error()); That should be afer mysql_query & mysql_num_rows.
  25. How is this number generated? If it's a number in a string it's as simple as: $var = '2,340'; echo $var[0];
×
×
  • 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.