php alert table mysql help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tomsace
Forum Contributor
Posts: 167
Joined: Thu Jan 01, 2009 8:07 pm

php alert table mysql help

Post by tomsace »

Hi,

I need to run the following code in mysql:

ALTER TABLE tablename AUTO_INCREMENT = 1

How can I run this mysql quiery from my webpage rather than having to login to mysql to run it?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: php alert table mysql help

Post by requinix »

You do it just like you'd do for any query: with mysql_query.
Post Reply