www.webdeveloper.com

Search:

Type: Posts; User: mdjo

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,132

    I don't know if it's needed without seeing what...

    I don't know if it's needed without seeing what queries are being used, but it's certainly not redundant. The order of fields in a key makes a difference. If we have an index of...
  2. The short answer is "union": select * from...

    The short answer is "union":

    select * from template
    union
    select * from custom

    A more fundamental question is why you have two tables with identical layouts. It would probably be easier to...
  3. I've never heard of "Top Style Pro", so I can't...

    I've never heard of "Top Style Pro", so I can't comment on that directly. But in general, if you want to be able to view pages on your local computer or a test server:

    1. Use relative links. Okay,...
  4. Replies
    4
    Views
    1,194

    Oops, there should have been a "from" in there...

    Oops, there should have been a "from" in there somewhere.
  5. Replies
    4
    Views
    1,194

    Perhaps you should show us the exact query you're...

    Perhaps you should show us the exact query you're trying to use.

    I would think this should work if you said


    select personid,min(time)
    group by personid

    Does the time field really say...
  6. Thread: mysql dates

    by mdjo
    Replies
    3
    Views
    1,163

    I'm at the office where we don't have mySQL, but...

    I'm at the office where we don't have mySQL, but the following works in Postgres:



    update mytable set mydate=mydate+365
    where somecondition=true


    Assuming that the previous poster is...
  7. I believe you're right, my senile old brain was...

    I believe you're right, my senile old brain was jumbling together two numbers. Now I'm trying to remember ... did our ASR-33s have a switch to let them operate at 110 or 300, or was it that the Dec...
  8. Hey, you may even be before my time. I started...

    Hey, you may even be before my time. I started with Fortran IV. Did you ever use SNOBOL? Perhaps the most concise language ever.

    I have fond memories of the day we replaced our 310-baud ASR 33...
  9. The direct answer is: I don't know, but it's easy...

    The direct answer is: I don't know, but it's easy enough to work around.

    Whether or not Google will be able to chase your redirect may depend on just where and how you're initiating it. In...
  10. Thread: Link List

    by mdjo
    Replies
    6
    Views
    1,439

    The key problem is that you never set "next" on...

    The key problem is that you never set "next" on the last entry in newlist.

    You need something like:



    Link leftOfMiddle=getLeftOfMiddle();
    Link rightOfMiddle=leftOfMiddle.next;...
  11. Replies
    2
    Views
    6,081

    Hmm, the literal "Enter name" is never going to...

    Hmm, the literal "Enter name" is never going to equal the literal "Stop", so the loop will always promptly exit.

    Perhaps what you have in mind is something like:



    while (true)
    {
    String...
  12. Replies
    10
    Views
    1,197

    I was thinking that perhaps the reason why the...

    I was thinking that perhaps the reason why the original poster did not use multiple columns to start with was that he had some more complex formatting requirements, in which case he might need to use...
  13. Replies
    10
    Views
    1,197

    In any case, the "correct" answer is surely...

    In any case, the "correct" answer is surely KDLA's first suggestion: putting each heading in a separate column, i.e. <td>. This has the big advantage over other methods that it actually works, and...
  14. Replies
    1
    Views
    6,573

    I'm typing this code of the top of my head, so it...

    I'm typing this code of the top of my head, so it may have syntax errors, etc, but the principle would be something like this:



    void findSubFiles(File dir)
    {
    File[] files=dir.listFiles();
    ...
  15. Replies
    5
    Views
    2,211

    Ah, so it's not really a "menu", it's a node tree...

    Ah, so it's not really a "menu", it's a node tree of some sort.

    But hmm, if you're trying to make your code generic, then I think you're pushed to a solution that involves storing table name and...
  16. Replies
    5
    Views
    2,211

    Hmm, are you saying that a menu entry will link...

    Hmm, are you saying that a menu entry will link to a specific record in one of many tables? This sounds like a very strange design. Why would a menu entry link to a specific record? Maybe I just...
  17. Replies
    6
    Views
    1,531

    Including description in the group-by means it...

    Including description in the group-by means it will find the max id for any given description, which is probably not what you want.

    Side note: substr(id,1,11) looks to me like it would be no...
  18. Replies
    4
    Views
    936

    Why join on A at all? Why not just: select...

    Why join on A at all? Why not just:



    select p1,s1 from b
    union all
    select p2,s2 from b


    But then, I'm sure the example was contrived, maybe in real life your table A really had other data...
  19. Replies
    4
    Views
    1,254

    Oh, sorry, I completely misunderstood what you...

    Oh, sorry, I completely misunderstood what you were asking. You just want to know how to have two functions run at <body onload> time? Easy.

    Suppose the two functions are called "stuff" and...
  20. I typically create a class I call "Db", and in...

    I typically create a class I call "Db", and in that class I create a static function that gets a connection. Like:



    public Connection getConnection()
    {
    Class.forName("...driver...");
    ......
  21. Replies
    4
    Views
    1,254

    My first question would be what you're doing to...

    My first question would be what you're doing to get the checkbox checked on the return. I presume you're using PHP or ASP or JSP or something. Why not just use the same flag to turn on the textbox?...
  22. Replies
    57
    Views
    5,533

    I recently did some preliminary work on an...

    I recently did some preliminary work on an application for hand-held devices, where the screen was, I forget the exact size, something like 300 x 250. Now THAT starts to get challenging. In a few...
  23. Replies
    1
    Views
    688

    Ah, you're laboring under the naive delusion that...

    Ah, you're laboring under the naive delusion that JSP/servlets support file uploads. They don't. You have to write your own code to parse the file out of the request stream, or beg, borrow or steal...
  24. Replies
    2
    Views
    855

    It depends on your servlet engine. In Tomcat, by...

    It depends on your servlet engine. In Tomcat, by default it's in "work/Catalina" followed by the name of the server, then under that are directories for each context. Let's see, I don't have any...
  25. Replies
    1
    Views
    869

    Your syntax is correct. Well, is that EXACTLY...

    Your syntax is correct. Well, is that EXACTLY what you put. Because that would give an empty cell. If you're trying to just make a box of a certain color, put an "&nbsp;" inside the cell. If you...
Results 1 to 25 of 46
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles