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

PHP/Database issue
My friend is helping me make a database where you go to a certain webpage of my site and the page wi

passing an array of objects after submit
How do I do this? This is what I have tried and it is not working.

<form method="

php calculate
this code echoes correctly the sum but the inserted result is 0??
Code: <?php
$TotalNum

Simultaneous select/update/insert
Hi

How would I need to go about when 2 users update a single row simultaneous? And how would

php form help
Hey,

I use a control file to set my meta tags and titles

Here's an example
Code: &a

User registration and login
I don't know whether this is the correct forum, if not i apologise but am pretty desperate at the mo

how to hide input fields on selection screen using variant attribute
Hello all,

I want to know how to hide input fields on selection screen using variant attr

Business Health Check
Hello

I need to create an online business health check for a client it will be multiple choi

How to find OS bit version
How can I tell the person browsing my site is running 32, or 64 bit operating system?

How to sum these output values
Hi

I need sum the month totals
SELECT region_name, area_name ,SUM (CASE WHEN S

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