Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Echo the actual query... it's probably getting run twice.
  2. You'd have to split your search query on, say, spaces, and then test each keyword separately.
  3. The problem is your use of group by & mixing comma and JOIN, amongst other things.
  4. Yeah, that's not how a database works. How do you decide which one of the N rows is correct?
  5. I don't understand... you mean to query this table? What output are you expecting?
  6. Next time, use code blocks, and don't post your access credentials! As for the upload, there are countless tutorials on php image uploads....
  7. you need ppk%, not ppk_ -- the latter matches only one character. And an anchor, too....
  8. 1) I'm not spelling anything wrong -- see here. 2) That was a full sentence; "leading" makes it sound optional; the sql-99 date format is YYYY-MM-DD, so there's no choice here, really.
  9. You can't use SUM in a WHERE clause.
  10. Right... that makes sense. The trick is to "order" by the lowest probe value, and then carry that forwards. Like this: select t1.* from exp as t1 inner join ( SELECT r1.*, @rank:=@rank+1 as rank FROM ( SELECT probe, MIN(pvalue) AS pvalue FROM exp WHERE pvalue<0.05 GROUP BY probe ORDER BY pvalue ASC ) as r1 cross join ( select @rank := 0 ) as r2 ) as t2 using ( probe ) order by t2.rank ASC, t1.pvalue ASC No SP required!
  11. I find that hard to believe... does each individual select return the expected results?
  12. How about: SELECT t1.* FROM yourTable AS t1 INNER JOIN ( SELECT experiment, probe FROM yourTable WHERE pvalue<0.05 GROUP BY experiment, probe ) t2 USING (experiment, probe ) order by t1.probe ASC, t1.pvalue ASC;
  13. Well, you can link the rows... how would linking "data" work?
  14. I don't consider those "leadings zeroes" vs. zerofill.
  15. Depends what the source format is like.
  16. That's up to you and your script... MySQL doesn't really care either way; though MySQL 5 does have some built-in XML support.
  17. Not sure exactly what you're asking for...
  18. No function -- just query the users table with JUST the user name, then in php check the hashed password against the value you've stored in your DB.
  19. Read this thread.
  20. fenway

    images table

    Just iterate through the results.
  21. There are no "leading zeroes" in a date field...
  22. We don't debug php scripts on this board -- show us some sql statement output.
  23. Yes, but that doesn't require a constraint per se.
  24. One answer = one row. Multiple answers = multiple rows.
×
×
  • 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.