Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Or, a simpler option is simply to post the data from form_1 to form_2 and store it within hidden form elements ready to be sent again along with the rest of the data to the final page for processing.
  2. There is no need for parenthesis unless you need to pass arguments. The problem is in the variable naming. $dom = new DOMDocument; $dom->load('SalesOrder.xml'); $rows = $dom->getElementsByTagName('Row'); Probably my fault but I wasn't looking at how load worked. There is no need to save the result into a variable.
  3. Your creating an object then never using it. You then try and call load() directly from a class, it's not static, so you shouldn't. Change: $dom = new DOMDocument(); $dom = DOMDocument::load('SalesOrder.xml'); to $doc = new DOMDocument; $dom = $doc->load('SalesOrder.xml');
  4. This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=358345.0
  5. That's not going to work because $_POST['name'] wont exist until the form has been submitted. You will need to post the form to an intermediate page and redirect from there.
  6. Your code is all over the place. Your function is declared within an if statement, meaning it will only exists if $Approved is true. You also do most of your displaying logic outside of this if statement without ever checking to see if your query actually succeeds before using it's result. It needs a rewrite.
  7. Awesome, will be using this for sure.
  8. The variable $inapoi likely contains a newline char, you cannot put a newline in a header via php. Also, I'm not sure what your trying to do with urldecode within your header call. A location header should be a complete and absolute url. This includes the hostname. eg; header("Location: http://somedomain.com/foo/bar");
  9. The error is pretty self explanatory. You don't have the mssql extension installed or configured. This extension is longer recommended. See http://php.net/manual/en/intro.mssql.php for details.
  10. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=358297.0
  11. The PHP Help board *is* for help with PHP questions. Unfortunately, your code is not PHP. All i have done is move your question to the appropriate board and ask you a question.
  12. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=358188.0
  13. trq

    mysql import

    mysql databasename < file.sql
  14. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=358192.0
  15. I haven't even read your post, mostly because I couldn't be bothered considering you couldn't be bothered popsting it within the correct board. This however: if("HousePrice_max" < 1000000) makes little sense. How exactly do you expect the string "HousePrice_max" to be less than the int 1000000 Ever heard the expression "like comparing apples and oranges" ?
  16. This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=358157.0
  17. The second argument to preg_match needs to be a string.
  18. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=358137.0
  19. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=358125.0
  20. But where are you going to go? Seriously, Debian offers a lot of stability. The only distros I know of that are bleeding edge are also far more work to maintain than Debian. It comes with the territory.
  21. Obviously you need to stop the execution of the query so it doesn't generate an error. Why on earth are you building a query from results found in the database anyway?
×
×
  • 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.