Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Like an echo of the sql statement that insert data.
  2. It's great for TRIGGERS.
  3. Why are you storing it that way/
  4. That's not valid syntax. So it won't work. As for the actual question, you need to decide which one of the three records you want to use.
  5. If that's the case, I think a self-join is more appropriate... why duplicate the info?
  6. First, why not a JOIN? And it's very scary to use array references like that... in fact, you mean $arr1 on your last line. I'm just guessing column names here.... select t.ref, u.username from topref inner join users where u.username = t.username order by t.ref desc limit 100 As for your actual question, you can use WHERE signup_date > CURDATE() - INTERVAL 7 DAY.
  7. Sure, just add more part to the where clause...
  8. First ,please stop posting all of your script code. Second, make sure you turn on all error reporting in php. Third, if you can't echo, then there's something else wrong.
  9. PLEASE don't use this code! You should only issue a single INSERT statement, with multiple VALUES().
  10. How is that possible? Re-post the query.
  11. Solved how?
  12. I dont get what you want me to do ....... I want you find these records without using the date as the search criteria.
  13. No, not huge... just one extra "AND" for each chosen drop-down (assuming you want it narrow the results... ) That depends... if there are "custom fields" for each product type, then yes.
  14. No, not at all... that won't work. Why not use a datetime field to mark the record as expired, instead of deleting it?
  15. And it had better be a INNER JOIN if you're going to use a where clause from the 2nd table!
  16. First, "Not Recorded" should be stored as NULL in a database. Second, adding "all" to the default of a dropdown should be easily accomplished in HTML. Third, you need to examine each one of the fields that is POSTed to your form, and build each part of the WHERE clause sucessively. If it's "all", then leave it out. You'll also need to decide how "Not Recorded" is treated. Same goes for Capacity, where you'll have to translate your options.
  17. Could you post the error message?
  18. That IS the correct format.
  19. So you just want to keep track of which distributor was signed up by which dealer?
  20. You could do this in mysql, too....
  21. I really hope you didn't change this field from a DATE column.
  22. I guess I'm trying to figure out exactly what you're trying to query....
  23. Precisely. Are all of these fields in a single table?
  24. Um, you're missing a JOIN condition!
  25. Those links were useless... hence "removed". Don't try and limit them by this field... use a differnet one.
×
×
  • 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.