Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Well what are the permission on the directory and who's the owner?
  2. Maq

    current month?

    If the client inserts the month, then it seems you should already have it. Maybe I'm confused.
  3. Maq

    current month?

    Are you trying to extract the month or insert it?
  4. Please do not double post. I see this is your first but so for future reference there is a "report to moderator link", and you can request to have your thread moved.
  5. Something like this: mysql> select id1, max(id2), somecolumn from testing group by id1; +------+----------+------------+ | id1 | max(id2) | somecolumn | +------+----------+------------+ | 1 | 3 | text | | 2 | 6 | text | +------+----------+------------+ 2 rows in set (0.00 sec) Although I'm not sure what you mean by:
  6. Echo out mysql_error() to see what the problem is. You can also echo out your query to see what it actual is.
  7. Don't redefine $test by assigning it to the array_push.
  8. A couple of things: LIKE '%%' matches anything and everything. There's no point to include those clauses. I meant actually echo the string that's produced implementing the DATE_SUB() function (you should see a date). What language are you writing this in? Please post the relevant code. You would probably want to join these tables. We would need to know the desired result(s) and the table structures.
  9. Can you echo out your query string and post the output?
  10. There is a native MySQL function called, DATE_SUB(), that you should be using. Invoices.DateBilled Edit: I believe you should also be using NOW() as opposed to CURDATE().
  11. Hit it harder, it'll eventually work.
  12. Please elaborate. What in his post suggest racism?
  13. It would be "as UNSIGNED". Are you receiving errors? Have you echoed your query to see what's actually going on? Echoed mysql_error()?
  14. Considering that you're trying to add varchars together, you may have to CAST the substring before operation.
  15. Hmm, yeah I guess you're right. But, it's really with/for the SELECT, not the the INSERT.
  16. cbolson, you can't use a WHERE clause with INSERT.
  17. What's your question?
  18. Read: http://www.tizag.com/mysqlTutorial/mysqlcount.php
  19. Maybe you shouldn't watch so much TV.
  20. Echo $sql3 and post the output.
  21. I receive a 404 not found error.
  22. We may need to see some code, but this usually occurs when you have a fatal exception in JS. The functionality will just go right out the window.
  23. No one suggested that, in fact, that's not even a native method. We're trying to help you and you're doing the complete opposite. Until you're willing to cooperate and listen, you're wasting everyones' time.
  24. If you explain exactly what you are trying to do, maybe we can suggest the best approach. Since you ignored our previous suggestions it seems we're guessing until then. Not sure what the point of this is then?
×
×
  • 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.