Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. I suppose it is possible... but you'll still need to get the "horizontal" pagination working first.
  2. DISTINCT is not what you want....
  3. It's not hopeless... why not "massage" the data in script?
  4. I'm sorry I don't follow... you need to count how many goals each person scored on each team?
  5. And how can you mark this as "solved" without posting a solution?
  6. Sorry, I don't follow.
  7. Well, since it's easy to figure out what IP range is covered by the CIDR, assuming you stored IPv4 as UNSIGNED INT, this should be trivial with a BETWEEN.
  8. Lots of things... but the important one is that PASSWORD() isn't for "external" use... it's only mean for the users table in the mysql database.
  9. What does that mean??? And the code wasn't necessary...really.
  10. Perhaps because you specified a non-left-join'ed field in COUNT()? If you provided sql statements to generate the tables & rows, I could test some other ideas on my end.
  11. Then you want to group by the "date' part of the datetime field only, right? Try "GROUP BY DATE(date)" instead.
  12. Don't know how you came up with "NATURAL JOIN"... Definitely *NOT* what you want. Try (with table prefixes, please!): SELECT r.referral_id, r.lname, r.fname, r.date, l.location FROM tbl_referral_info AS r INNER JOIN tbl_location AS l USING ( location_id ) order by r.lname;
  13. Moving this to the PHP Help board...
  14. Schema? Sample data? And * and GROUP BY are like oil & water.
  15. PASSWORD() isn't meant to be used by anyone other than mysql... and I hope there's a salt.
  16. probably because you're mixing CURDATE() and a TIME-based INTERVAL -- use NOW() instead.
  17. Just insert into the user table. I really hope you mean using the appropriate commands, and not modifying the mysql tables directly...
  18. that's a big schema... any particular aspect you want input on?
  19. There are countless tutorials on this subject -- and many such posts/topics here as well.
  20. I don't understand what you mean.
  21. You should use INT UNSIGNED -- twice the values, same price -- and the "length" field does nothing.
  22. This is barely a mysql issue... it's php syntax.
  23. use code tags next time... and what's the mysql question, exactly?
×
×
  • 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.