Results 1 to 3 of 3
  1. #1
    ABW Ambassador AddHandler's Avatar
    Join Date
    January 19th, 2005
    Posts
    1,270
    Empty A MySQL Database Using PHP
    I was wondering if anyone could help me out...

    I need to be able to empty a Mysql Table from within an Admin area.. that is already "hooked" up to the database....

    I just want to be able to delete ALL RECORDS with a text link....

    HELP....


    THANKS!!!!!

  2. #2
    Lite On The Do, Heavy On The Nuts Donuts's Avatar
    Join Date
    January 18th, 2005
    Location
    Winter Park, FL
    Posts
    6,930
    you still have to execute a sql command to truncate the db - using php to send the send the command to do it.

    http://www.phpfreaks.com/quickcode/Empty-Table/447.php

    there's a number of ways you can use a link to fire off the php to make it happen, form that actions it then refreshes the page, separate window that fires it off, etc...

  3. #3
    ABW Ambassador AddHandler's Avatar
    Join Date
    January 19th, 2005
    Posts
    1,270
    Cool Donuts... THANKS....

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. php/html can't get empty zone gone
    By samanesh in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: September 6th, 2010, 11:32 AM
  2. Hosting A php-mysql database driven site
    By Cheesehead in forum Programming / Datafeeds / Tools
    Replies: 17
    Last Post: February 19th, 2007, 02:38 PM
  3. Database Replication with mySQL
    By Snib in forum Programming / Datafeeds / Tools
    Replies: 10
    Last Post: September 8th, 2006, 01:24 AM
  4. PHP/mysql database solution for coupon site?
    By Kimmyshop in forum Midnight Cafe'
    Replies: 7
    Last Post: July 28th, 2005, 05:28 AM
  5. MySQL database - Can I...
    By ~Michelle in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: March 26th, 2004, 01:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •