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

Combining Two Queries
I have two scripts that each work fine by themselves. One is a search script with a variable that de

IP question
ive got 2 ip addresses both global from same user how would i detect if they are local to each other

error help - Dynamic Image
I've been working on making my site less cluttered in the directories and more secure lately. In an

Check Digits and extracting digits
I think I can figure out the code for this but I am having a very hard time getting past the first s

want a code for uploading and downloading
i m trying to upload and download to my site..i need upload and download code ...i use a code for up

limit string by words??
hello all,

I was wonder if there is a function to limit a string by the number of words inste

Apart from cron
I need to run a php file every one hour. Is there any other solution apart from cron job?

Curly Bracket Delimeters.
I'd always believed that the starting and ending delimeters in preg_ functions had to be the same ch

filesize() returns 0
I have a socket program that runs in an infinite loop, listening for connections, in this socket I h

PHP friend keyword equivalent
is there a PHP equivalent for the C++ friend keyword?

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