Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

How to reset "page_id=xx" on Custom Pages?

Little stupid question, but is it possible to reset the 'page_id=' number when making Custom Pages? Tried to make Custom pages "few" times and looks like the counter is going on and on, even deleting the page.

Not a big deal, but little bit annoying ;)
The database increments the counter with each new page. It would be possible to disable this, but it is easier and faster to do it this way.
Unless you create more than 65535 pages, you won't run out of ids, too.
eh, sorry, what way ... ?
You can use the code below in a custom page. Make sure that the auto_increment value you specify is higher than the ones you already have and use.

CodeDownload  
<?php
$result = dbquery("ALTER TABLE ".$db_prefix."custom_pages AUTO_INCREMENT=12");
if ($result) echo "AUTO_INCREMENT decremented successfully. :P<br/>";
else echo "Well... Something's not right. :/<br/>";
?>



Good luck!
thanks ;)
Thread Information
Author
Replies
5 posts
Views
1,967 times
Last Post
Last updated on 12 years ago
You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.