Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. And what's the problem?
  2. Yes, there's a sticky in the config child board... moving it there.
  3. It would be possible if you used a list adjacency model instead of a hierarchy.
  4. You're talking about a bunch of different things here... escape_string() doesn't do anything of the sort.
  5. Why do you think you need so many?
  6. You might want to consider naming your trigger with a prefix that tell you when they are triggered (like "AU_" for after update).
  7. Sadly, I have even more basic knowledge... I could tell you how to do it in Perl ;-) Basically, just get back all of the rows "as-is", then build a hash of ( id, date, times ).
  8. or BETWEEN event_date - INTERVAL 1 MONTH AND event_date + INTERVAL 1 MONTH But of course you'll need to start for the beginning of the month, so you might want to use extract the YEARMONTH.
  9. I don't undrestan.
  10. You mean like + INTERVAL 3 MONTH?
  11. You shouldn't use date as your column name, that's a reserved keyword.... $month = $_GET["m"]; $result = mysql_query("SELECT * FROM ".TBL_NAME." WHERE MONTH(FROM_UNIXTIME( `date` ) ) = '$month' ORDER BY `date` DESC") or die("Error: " . mysql_error());
  12. I would say that it's easier to aggregate these data into a hash and then handle it in the application... otherwise, it gets a bit ugly query-wise, though definitely possible.
  13. Yes... don't use FLOAT/DOUBLE, it's evil.
  14. I'm sure the intent was backticks.
  15. You use MONTH(FROM_UNIXTIME( yourField ) )
  16. fenway

    cant update

    As requested before, please echo the sql query. echo mysql_query($update,$con); and the output is 1 Sigh... not the output of the query, the query string itself -- $uue.
  17. Don't store dates in CHAR fields... that was it.
  18. Yikes... are you really using "SELECT *" when you just want a count?
  19. Actually ,that's not helpful at all. The problem is that I don't know what this means:
  20. The mysql "error logs" are unlikely to show anything to that effect, but it's worth checking anyway.
  21. Make sure error reporting is turned in php...
  22. I'm sorry, I still don't understand what all of this represents.
  23. fenway

    cant update

    As requested before, please echo the sql query.
  24. I don't understand.
  25. Look at Lucene or Sphinx, 3rd party full-text search engines.
×
×
  • 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.