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.
Not a member yet? Click here to register.
Forgot Password?

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

Asked Modified Viewed 2,298 times
M
mapa
M
mapa 10
  • Junior Member, joined since
  • Contributed 15 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
asked
Junior Member

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 ;)
0 replies

4 posts

M
Matonor
M
Impossible things are there to be made possible
  • Veteran Member, joined since
  • Contributed 1,022 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

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.
0 replies
M
mapa
M
mapa 10
  • Junior Member, joined since
  • Contributed 15 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
answered
Junior Member

eh, sorry, what way ... ?
0 replies
K
kneekoo
K
  • Senior Member, joined since
  • Contributed 289 posts on the community forums.
  • Started 12 threads in the forums
  • Answered 1 question
answered
Senior Member

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.

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


Good luck!
Edited by kneekoo on 18-07-2007 15:35,
0 replies
M
mapa
M
mapa 10
  • Junior Member, joined since
  • Contributed 15 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
answered
Junior Member

thanks ;)
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 4 posts
  • Votes 0 votes
  • Topic users 3 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet