Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Sure. It's always the little obvious things that are the hardest to find
  2. Do it.
  3. Please don't upload the entire code, that has nothing to do with it plus people aren't going to download random files. I showed you exactly how to load an AJAX response into a dialog. You call it like this: Show Dialog Of course replace google.com with your server call. Also make sure you include your dialog.js (the file containing "newDialog()") .
  4. Change your method to POST in the form element.
  5. I am using XAMPP and did not think of installing Apache and MySQL, it is a good tip though. XAMPP include all those components (Apache, MySQL, PHP and Perl).
  6. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=350716.0
  7. Yes, you could have just tried it
  8. Are you using anything now, if so, which one?
  9. chrisrainey, I know you're just trying to help, and we appreciate that, but this thread is more than 2 years and already resolved.
  10. Kyle, in the future, please place OR tags around your code. You also should not be using short tags, use <?php.
  11. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=350701.0
  12. I would assume specifying the XML document as UTF-8 when creating it and database table, should fix it.
  13. This is why I suggested a framework like JQuery. It makes everything easier, especially loading into dialogs. Here is an example: In your .js file, write a function like this: function newDialog(url) { $("body").append(""); $("#new-dialog").load(url, {}, function(responseText, textStatus, XMLHttpRequest) { }).dialog( { height: 680, width: 840, draggable :true, resizable :false, closeOnEscape: false, close : function(ev, ui) { $('#new-dialog').remove(); } }); } This creates a div (#new-dialog) on the fly so you have something to populate into. The "url" parameter is the URL for the AJAX call. After it makes the call, the responseText will populate into the #new-dialog dialog. You call it the same way you're doing it now.
  14. This should give you some good ideas - http://net.tutsplus.com/tutorials/javascript-ajax/5-ways-to-make-ajax-calls-with-jquery/ You should pass in the "$idi" as a parameter when you call your AJAX method. If you need more help, make an attempt and post back.
  15. Overall, I think it looks nice, clean and straight to the point, it will be easy for users to find what they're looking for. Something small that bothered me: After selecting from the menu, don't auto scroll me down to the main container. The site is short enough where most can see the content and not have to scroll back up to select another option.
  16. I would suggest fixing it from the root, create and store the XML documents as UTF-8. It's really what you should be doing anyway, even if it's for the sake of universality.
  17. I would suggest using a framework like JQuery. Google JQuery post call, and you will find some examples similar to what you're trying to do.
  18. As Pikachu said, show us the code you're trying to use along with errors. If you don't have code I would suggest Googling it, making an attempt, and coming back to specific help. There are a multitude of good examples.
  19. If you're storing dates in a DB then you probably want to store it as a TIMESTAMP. That way you can operate on it if need be (get a certain range, add, subtract etc.).
  20. I think you're performing too many steps, something like this should suffice: echo date('Y-m-d h:i:s', strtotime("+20 seconds"));
  21. All the syntax you need is right in the manual - http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html
  22. This is a very basic question refer to the manual - http://php.net/manual/en/language.operators.string.php
  23. time - "Returns the current time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)." The integer you're getting is actually correct in seconds. If you're trying to store this in MySQL then why not use NOW() when inserting into the DB?
  24. That's great to hear. We're lucky to have such involved experts in a wide variety of fields. Happy Holidays to you too.
  25. This topic has been moved to PHPFreaks.com Questions, Comments, & Suggestions. http://www.phpfreaks.com/forums/index.php?topic=350509.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.