Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. The issue isn't related to either. It's simple html. id attributes must be unique.
  2. If you want any type of editing to be done without refreshing the page you will need to use Ajax to make the request to the server in the background. As for the issue at hand, I'm not exactly sure where you are stuck. In jQuery, the clicked object would shows up as within the callback as this.
  3. You could place the file in a variable and then use that.
  4. One solution I've used in the past is to create a simple front controller for all your server-side ajax handling and a simple function for client-side. A very simplified version might look something like: ajax.php if (isset($_POST['controller'] && isset($_POST['action'])) { $controller = $_POST['controller']; $action = $_POST['action']; $c = new $controller; $c->$action(); } Then in jQuery you just use something like.... function ajax(controller, action, callback) { $.ajax({ url: "/ajax.php", method: 'post', data: { controller: controller, action: action }, success: callback }); } ajax('foo','bar'); Of course if you need more flexability you need to be able to expose more than just a simple function.
  5. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=340117.0
  6. This type of thing is simply using a tcp protocol (in this case http) to connect to a website. There would be too many programming languages around that you couldn't do this in, and yes, I'm sure .Net would have interfaces for such things.
  7. Sorry, but it's not exactly clear what the issue is. DOS? PHP won't even install on DOS.
  8. That code should generate errors because you are trying to access an index that doesn't exist. Also, numeric keys are not strings, they do not need quotes. foreach ($array as $a) { if (isset($a[4])) { $attacks[] = $a[4]; } }
  9. Sorry but none of that made sense to me.
  10. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=340025.0
  11. There has got to be thousands of tutorials around for querying a database with php. Have you read any of those?
  12. You need to break your problem into smaller pieces and solve each of them one by one. Programming isn't just about learning a languages syntax. You need to think a problem through.
  13. Arrays need unique keys.
  14. Cookies relate to HTTP which is simply a protocol so any language can handle them. Sessions? Are you referring to something similar to PHP's sessions? Are you building a web application?
  15. I use Subversion at work (well I actually use a git wrapper around subversion - but I won't go into that) and Git at home. Git is the one I would recommend. See http://git-scm.com/
  16. I don't develop anything on or for Windows, but .Net is MS's main platform. I would assume it has the nicest interfaces into Windows.
  17. Your post is not at all clear. What exactly are you wanting to do? And can you please format your reply in a manor that is actually readable?
  18. If it's going to be Windows specific I think C# using .Net is going to be your best bet.
  19. What OS are you planning on developing this for?
  20. These are JavaScript errors. This is the PHP Help board.
  21. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=340063.0
  22. Have you ever noticed how most peoples posts have nicely formatted, syntax highlighted code around here? That is because we have tags for use when posting code.
  23. I think it's been outlined already by Pik. If you need to query any data across users you'll be *uc*ed. It's just a terrible design and has only downsides.
  24. I (and my employer - which is lucky) use Zend's guidelines which is a PEAR derivative. http://framework.zend.com/manual/en/coding-standard.coding-style.html It's a mix of both of the above. Functions and classes are defined as:
×
×
  • 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.