Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. If you use single quotes in your array key you must use curly braces to escape it.
  2. Two very popular free IDEs are Eclipse and Netbeans. I don't do PHP development but I do use Eclipse for Java and it is by far my favorite. Both of these will do everything you have listed. There are also plenty more IDEs that you can try out: http://www.phpfreaks.com/forums/editor-help-(dreamweaver-zend-etc)/editors/
  3. Did you follow my link? There is code that you can utilize in that thread. Try it out, if you need more specific help then post back.
  4. Not sure what you mean exactly.
  5. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=318858.0
  6. Take a look at this: http://www.phpfreaks.com/forums/php-coding-help/count-xml-child-elements-and-generate-html-table/msg1501644/#msg1501644 You can use that as a starting point to learn how to use xpath and loop through the elements.
  7. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=318852.0
  8. Please post the relevant code.
  9. The alert should message out 'msg', what is the value?
  10. There are plenty of tutorials and information online. JQuery is a nice framework and one of the most popular to work with AJAX.
  11. You should be doing this through your web server (most likely Apache).
  12. Where do you define $start and $per_page? Give us the code that isn't working.
  13. By the nature of a radio button group, you can only select one.
  14. Most mistakes are stupid and overly obvious, that's why they're so hard to recognize.
  15. Maq

    syntaxing.

    Sounds like homework. Assuming you have a date column: ORDER by [date] DESC LIMIT 10; Same as the last query except the WHERE id = '2' condition. All if this syntax is in the MySQL manual. Next time read it so you can learn for yourself.
  16. 'vatreg' doesn't exist in your table.
  17. Temporarily change this line to: $sql = mysql_query($sql) or die(mysql_error());
  18. Sorry, but what do you mean validate?
  19. Load time for me is like 10-15 seconds.
  20. I see, that way makes more sense for what you're trying to do anyway.
  21. I put them in 2 separate tables cause I hate dealing with them. $i = 1; foreach ($nodes as $node) { echo "</pre> <table border="'1'">title"; $nodes2 = $xpath->query("/note/source[$i]/*"); foreach($nodes2 as $node2) { echo ""; echo "" . $node2->nodeValue . ""; echo ""; } $i++; echo "</table>";<br> }
  22. WHERE user_rights = 3 If no results are returned, then they don't have those rights.
  23. XPath is an XML path language that allows you to select nodes and includes some logic and conditions. registerNamespace is exactly what is sounds like, registering the xpath namespace.
  24. I don't either, which is why I think he wanted: if(isset($_POST['delete'])){
  25. Close, I adjusted it a bit for you, try this: ini_set ("display_errors", "1"); error_reporting(E_ALL); if(!empty($_GET['xml']) && isset($_GET['xml'])) { $xml = $_GET['xml']; $dom = new DOMDocument; $dom->load('link.xml'); $xpath = new DOMXPath($dom); $xpath->registerNamespace("php", "http://php.net/xpath"); $nodes = $xpath->query("/{$xml}/*"); echo "</pre> <table border="'1'">title"; foreach ($nodes as $node) { echo ""; echo "" . $node->nodeValue . ""; echo ""; } echo "</table>";<br>}<br>else<br>{<br> echo "You did not provide a value";<br>}<br><br>?&g
×
×
  • 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.