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

serializing objects - loses methods - the point being?
Hi

I know that serializing an object will lose the methods. But whats the point in that? What

asking for direction
I have 2 tables in my data, which are "post" and "event"
I won't make a summa

Connecion issue
Hi,

For some reason, I keep getting this error when trying to connect:

Warning: mysql_

Simple Scraper... Weird Output
Okay, maybe I just need a Blue Monster and some sleep, but....

I'm scraping a ringtone site

Join Query Help
Hi all,

I am having problems with the below code, which we shall call 'my first join query'!

php multiple action on submit
I have a form which says:

<form enctype='multipart/form-data' method='post' action='pr

why aint this working?
i have this code:

Code: $num = 250;
$count = ($num - $rcount);

echo $rc

how to load php class from another domain?
how to load php class from another domain?

Stopping page post back
I have few literal contriols in my page and a repeater too. But inspite of using update panel, postb

How to file_get_contents when login required?
Hello!

I am trying to read data from a page that you have to be logged into to view, I am try

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