Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Hi N3ssi3, nice to finally see you on the forums.
  2. Could you explain what exactly happens?
  3. Amusingly funny article. I'm still hyped to see the movie though.
  4. Maq

    Music

    Would you be refering to the lines that appear in Chrome and Safari, but not in the far more popular Firefox or IE? I get them in FireFox... So do I... Same point. There are tools built into the forum software to help correct spelling and grammar.
  5. Instead of deleting then inserting, you can use REPLACE INTO. If the pkey exists it will UPDATE the record, otherwise it will INSERT the new data.
  6. Maq

    Music

    You don't notice the red dotted underlines?
  7. There's also a tutorial written on PHP dates here, in case you wanted an extra read: http://www.phpfreaks.com/tutorial/working-with-dates-in-php
  8. Maq

    Music

    I like Metal.
  9. Maq

    WHATS UP

    Hi devang23, It's always nice to see another member join the community. I'm sure you can learn a great deal here. Do you have any experience with any other languages?
  10. Maq

    TGIF

    It's well worth it.
  11. I fail to recognize how this would cause those methods to fail. Isn't there data in the fields during submission?
  12. Pshhh that is crazy talk. Don't hate on the 0...
  13. This should work. UPDATE [table_name] SET [column]=(REPLACE ([column], ' ', ''));
  14. *Less than or equal to 0
  15. I think slyte33 means something like this: $arr=array(1, 2, 4, 8, 33, 83, 122, 125); echo $arr[rand(0,count($arr))]; ?> Same concept as a bag in Java.
  16. Not sure what you mean by that. [ot]If your topic has been solved, please mark as so.[/ot]
  17. It's hard to tell you whats wrong without line 19 and some of the surrounding code. [ot]@Zero_ZX, One should not deal with MySQL errors in that manner. They should be handled appropriately. If a mysql_query returns false, you should throw an exception or display some sort of error message, but not kill the script.[/ot]
  18. MySQL supports aggregate functions that you can utilize such as SUM(). This would be faster than calculating the total in PHP.
  19. Have a variable outside the loop that can tabulate the total. $total = 0; for($i=1;$i{ $rand = mt_rand(0, 10); echo $rand; $total += $rand; echo " "; }
  20. Maq

    Installing SVN

    Keep in mind that there are plugins you can get for most IDEs. For example, a good SVN plugin for Eclipse is subclipse.
  21. Maq

    Installing SVN

    You can use both. Git plays very nice with SVN. There are plenty of tutorials on-line for this.
  22. So to clarify as to what solved the problem, you needed single quotes (as Mchl suggested) around the value in the WHERE clause.
  23. Daniel actually knew that. It's not like he Googled or anything.
  24. Well, what's the error?
  25. I know right. [ot]KingPhilip, you quoted the wrong person, I would really hate to be confused with Mchl..... [/ot]
×
×
  • 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.