Page 1 of 1

php alert table mysql help

Posted: Tue Feb 10, 2009 5:37 pm
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?

Re: php alert table mysql help

Posted: Tue Feb 10, 2009 5:48 pm
by requinix
You do it just like you'd do for any query: with mysql_query.