Re: Ok next php problem
| From: | tedd | Date: | Mon, 19 Jun 2006 02:11:18 +0000 |
| Subject: | Re: Ok next php problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-238256@lists.php.net to get a copy of this message | ||
At 7:21 PM -0500 6/18/06, Rob W. wrote:
>I got the previous question answered, Now here's my next problem.
>
>With the numbers displaying correctly again I got:
>
>1
>2
>3
>4
>5
>6
>7
>10
>11
>12
>13
>14
>15
>16
>17
>18
>19
>20
>21
>22
>25
>
>listed in that order in the database
>
>Now i'm trying to figure out how to write a syntax saying that if like number 8 isnt
>listed, display it.
>
>I've tried doing a
>
>if ($count != $data) {
> echo "$data";
>}
>$count++;
>
>But when I get to like id number 9 it dont work right because the next entrie is displayed as 10
>in the db. So that's my problem is to try and display only them numbers that are not in there.
>I have also tried putting the numbers in to an array and matching from there but it still
>come's up as the same as above.
>
>- Rob
Rob:
Why?
If you want to show the number of records in your dB, then just show them. If you want a counter,
then add a counter but don't list the id number. Besides, why would you want to anyway?
tedd
--
------------------------------------------------------------------------------------
http://sperling.com http://ancientstones.com http://earthstones.com