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'
Did you know?Explore Trending and Topic pages for more stories like this.


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

The type or namespace name 'ServiceModel' does not exist in the namespace 'System'
When I locally run the website, it works just fine, but when I uploaded it to the hosting environmen

Image upload - determine folder
I have an upload script that may be accessed from different directories. Problem is, the script is m

Search in the PHP Files
have to search asterisk(*) in the php code of the php files .
In the html page one text box

Re-Order by ID Number
I have a cms set up for inputting an image, thumb, title, pdf, and eps. When input the database ass

How to secure my login data to my database?
Hi there,

It may be a stupid question but I don't know how to secure my login data to my data

[RESOLVED] Socket/Port remains open after app crashes
I'm having this problem with a networked app in vb.net.

If the program exits normally the por

cURL Upload Help
OK, I am creating a bridge from a local program to my website and I am trying to find the best way t

Where am I going wrong
Been trying to work this out for hours

I have two tables called 'Genres' and 'Films'. Genre

Upload file and add HTML
Hey everyone,

I have a client has meeting agendas and minutes that should be posted online. I

Image resize
Hi again fellers

I managed to sort out the issues with the folder,

Final hurdle is th

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



Play Free Quiz and Win Cash