close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Increase ID by one every 7 days

Thread began 5/19/2010 10:51 am by John Langer | Last modified 6/21/2010 8:22 am by John Langer | 3373 views | 42 replies

John LangerBeta Tester

I have now inserted five records. So I had 5 rows numbered 1 - 5

I then deleted rows 2 and 4. So now I have 3 rows numbered 1, 3 and 5

I've also changed the 7 to 2 in the hope that the list will change every two days rather than 7 (just to speed things up. I did think of making it every 1 day but I thought that dividing by 1 wasn't a good idea (I don't know, maybe it is).

Also the list that was displayed after adding the records was #5. Fine really, as I would want the most recent addition to display.

So I thought I'd add a sixth record. This I did and on refreshing the page NOTHING displayed apart from an empty list.

I added this code to the page thinking that perhaps it's showing record 2 or 4 (now deleted) RecordID = < ?php echo $row_rstopten['topTenListID']; ? > but that also just showed a blank record.

I changed the division number to 4 and still a blank display

I then changed the division number to 3, 4, 5, 6, 8 just to try it
and 3 worked
4 didn't
5 did
6 didn't
7 did
8 didn't
9 didn't
10 did

Then 33 and 56 (both displayed). It seems to me that if the division results in a number that coincides with a deleted record (in this case 2 and 4) then it has nothing to display.

Is there a way round this? The client will (without a doubt) delete records from time to time.

Sorry to put a damper on it.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...