Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Your example and description don't help at all. Learn to prepare a decent question and come back.
  2. You can test for a valid date format. JavaScript, like a lot of other languages has a regex engine.
  3. Your query is failing for some reason. Do you have any way of checking errors from those objects?
  4. Did you even read my last post?
  5. Sorry, missed that all together. Remove the quotes from around the $connection variable. It's not a string. $sanitized_email=mysqli_sanitize($connection, "T'es'ts3e");
  6. What does mysqliCOE() return?
  7. The code you just posted does not work with the sqlsrv driver. Looks like it requires the old mssql extension which you apparently don't have installed either. Either install the old (and depricated mssql extension) or find an abstraction that uses the sqlsrv extension. PS: This thread has nothing to do with the topic of this board.
  8. Your passing the string "connection", not the connection resource that the function actually requires. On top of that, you never actually use the $conn variable anyway.
  9. The best you could do would be to make your function accept an array.
  10. Go to the freelance board, read the rules and if you agree, post your request. This board clearly states it is for help with code.
  11. Try it.
  12. No, it means that variables do not interpolate within a single quoted string. Try: exec("C:\PSTools\psexec -d 'C:\Program Files (x86)\PHP\php-cgi.exe' C:\inetpub\wwwroot\bkupdate.php '$var1' '$var2'");
  13. Variables are not interpolated within single quotes.
  14. You could start by showing us the complete error message.
  15. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=360286.0
  16. Well wouldn't ya know. It's been a long time since I've used jQuery (we use Mootools at work). I should probably check the manual before opening my mouth I guess.
  17. If you want to use it. oh, and jQuery doesn't have any include method.
  18. Ha, I didn't even see that. I guess I should have read the topic.
  19. I work for a company in Sydney. We develop administration software for schools.
  20. Remove the [] from around the string "Wood Axe"
  21. We use a cross between kanban and scrum at my work. All our work is prioritised to a degree further up the food chain before it even gets to us developers, but the kanban / scrum process allows us to prioritise it further once we have it in our sites. We've only really been working this way for probably the last 6-7 months though, but yeah, it has improved both quantity and quality imo.
  22. <?php if ($differencemonth <= 0 ){ print "Variance Month <font color=\"red\">£" . round($differencemonth) . "</font>"; } else { print "Variance Month <font color=\"000000\">£" . round($differencemonth) . "</font>"; }
  23. One great way to become a better programmer is to get involved with an open source project that maintains a good code base. You will learn a lot by trying to fix bugs in code that you may not necessarily have written. You will also get feedback from the rest of the community. Of course, you don't want to just pick any old project. It has to be something that you are interested in, and something that you yourself will use.
×
×
  • 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.