Professional Web Applications Themes

DESC LIMIT 5 problem - PHP Development

Hello, I have a problem with the next query, it supposed to give 5 row's back but i gives just 2 row's back.The temptable with id=5 should give 15 row's back if there were no conditions. could somebody tell me what to do about this. $query6 =" SELECT * FROM temptableWHERE id=5 ORDER BY timestamp DESC LIMIT 0,5"; Thanks in advance G...

  1. #1

    Default DESC LIMIT 5 problem

    Hello,

    I have a problem with the next query, it supposed to give 5 row's back but i
    gives just 2 row's back.The temptable with id=5 should give 15 row's back if
    there were no conditions. could somebody tell me what to do about this.

    $query6 =" SELECT * FROM temptableWHERE id=5 ORDER BY timestamp DESC LIMIT
    0,5";


    Thanks in advance

    G


    Spam sucks Guest

  2. #2

    Default Re: DESC LIMIT 5 problem

    i allready found the problem sorry for the post.

    G


    "Spam s" <nomail> schreef in bericht
    news:3f867be8$0$58701$e4fe514cnews.xs4all.nl...
    > Hello,
    >
    > I have a problem with the next query, it supposed to give 5 row's back but
    i
    > gives just 2 row's back.The temptable with id=5 should give 15 row's back
    if
    > there were no conditions. could somebody tell me what to do about this.
    >
    > $query6 =" SELECT * FROM temptableWHERE id=5 ORDER BY timestamp DESC LIMIT
    > 0,5";
    >
    >
    > Thanks in advance
    >
    > G
    >
    >

    Spam sucks Guest

Similar Threads

  1. backtick problem : size limit?
    By Mark Walker in forum PHP Development
    Replies: 1
    Last Post: September 1st, 04:03 PM
  2. Sorting [asc][desc] in datagrid
    By Saravana in forum ASP.NET Data Grid Control
    Replies: 0
    Last Post: July 21st, 04:25 AM
  3. 4.3.2 fopen() problem/limit?
    By Mike Yrabedra in forum PHP Development
    Replies: 1
    Last Post: July 17th, 03:24 PM
  4. [PHP] 4.3.2 fopen() problem/limit?
    By Mike Yrabedra in forum PHP Development
    Replies: 2
    Last Post: July 17th, 01:05 PM
  5. SQL Programmer Desc[ribe] command
    By Telemachus in forum Oracle Server
    Replies: 1
    Last Post: January 9th, 05:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139