Jump to content

AndyB

Staff Alumni
  • Posts

    5,465
  • Joined

  • Last visited

    Never

Everything posted by AndyB

  1. It's hard to imagine a good reason for duplicating a row into the same table. Perhaps if you explain your objective, you'll get a rational solution.
  2. Your code is doing exactly what you told it to do. echo $theResults; is probably what you need.
  3. $enquiryField = $_POST['enquiry'] should be $enquiryField = $_POST['enquiry'];
  4. mysql_num_rows() - http://ca.php.net/mysql_num_rows
  5. Maybe you want to specify what's important to your team. Otherwise, you'll probably get a lot of CuteFTP or WS_FTP Pro or "why not use drag and drop" suggestions.
  6. Triangles have three 'corners'. So what do you really want? Perhaps this -> http://www.cssjuice.com/25-rounded-corners-techniques-with-css/ - would help?
  7. If there was a prize for the largest number of confused people in a thread, this one would be a front-runner. You start by asking how you get the source code - which can't be done unless you have server access to the domain where the script resides. Then you switch to wanting to see the generated html which can be done by 'view source' using a browser. Could you clarify just what you want to get and how you're going to use it if you could get it.
  8. To confirm ... mysql_select_db(dbname) is missing from your code. @gizmola - er, wrong thread man
  9. Here's a start: First problem - you may have connected to the MySQL server but you haven't selected a database. Second problem - your first 'query' has no closing quote. You never do anything with that SELECT query, but that's beside the point. Third problem - you have zero error trapping on either the query that's never used or the UPDATE query. Either would have revealed the lack of database selection. Fourth problem - a minor one. Use [ code ] tags when posting code here.
  10. Does your form have attributes quoted, e.g. <input type='text' name='wombat' size='10'/>
  11. There were two leap years between 2001 and 2009. That's where your two day error comes from. Since the financial year always ends on March 31 regardless of the year, exactly what were you hoping to accomplish?
  12. something here - http://www.google.ca/search?q=REST+service&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a should give you a starting point.
  13. This looks suspiciously like a spam application. Again. If you come up with a convincing reason why you need this, we'll unlock the thread (and don't even think of starting another equivalent). Otherwise, you're done,
  14. heredoc - http://www.hudzilla.org/phpwiki/index.php?title=Heredoc_syntax
  15. And how does index.php acquire the value of $theme?
  16. Just as a matter of interest, if a form contains hidden inputs one of which is used to ensure the form is 'valid' would your method still work?
  17. Google's full of them (client side and server side) php freaks has a board for regex help. This php snippet -> http://www.phpbuilder.com/board/showthread.php?t=10314920 probably answers your original quest
  18. LIKE belongs in the WHERE component http://www.tizag.com/mysqlTutorial/mysqlwhere.php
  19. I wouldn't do it with javascript because that might be off. Process it server-side and do your validation there. A simple regex check would do.
  20. If I had to guess, I'd say that either one of both of those database fields isn't defined to allow numbers in the multi-billion range. I don't understand quite why you need record ids that high - most of us are happy to start at 1. Post your table definition.
  21. It looks as though you might get lucky with Opera, otherwise you'll need to wait for CSS3 support. http://archivist.incutio.com/viewlist/css-discuss/42166 update: http://www.westciv.com/style_master/academy/css_tutorial/advanced/printing.html CSS2 help
  22. Change $result=mysql_query($query); to $result=mysql_query($query) or die("Error: ". mysql_error(). " with query ". $query); and post the message you receive.
  23. Oops, I didn't notice the first piece. The real code is: <select size="10" name="menu"> <option value="">Select A State</option> <option value="New York">New York</option> <option value="California" select='selected'>California</option> <option value="Florida">Florida</option> <option value="Rhode Island">Rhode Island</option> </select>
×
×
  • 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.