Delete all from a table


Posted on 16th Feb 2014 07:03 pm by admin

I can not get the following code to work. If I run the sql statement in the db it will delete all the data but it will not work from the page. My connection string is fine I just can not get it to delete.

Code: <?php
include 'dbc.php'


mysql_query("delete from categories");

include 'redirect_category.php';
?>

No comments posted yet

Your Answer:

Login to answer
281 Like 33 Dislike
Previous forums Next forums
Other forums

my sql select id and then update problem.
I need to select some auto incremented ids out of a database and then use those id in a where statem

Session login issue
I'm wondering how to fix a problem I'm having with a session-based login system

Say I go to h

Replica Omega Special Series
[b][url=http://www.omedeville.co/no/]omega klokker på salg[/url][/b] [b][url=http://www.omedeville.

PHP form help required
Hi all! Apologies in advance for having to message the forum for help. I know you must get a lot of

??????? ??????? ????
[b][url=http://www.bestreplicawatch.cn/ru/]Rolex Datejust[/url][/b] [b][url=http://www.bestreplicawa

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Google+ Indyaspeak @ Pinterest RSS