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

login box shows up again after logging in 2nd login works
Hello,

I am having trouble on my site Lockerz.rack111.com where when you login the login box

Timer control causing error
I recently decided to add a timer control to an existing page that uses AJAX on my site. As soon as

cURL and Sessions
Ohai.

So, I'm trying to cURL a bunch of things off of a page, and put them into a session. I'

how can i display php source code snippets ?
I am outputting some pho code .. and I want to display the source code so people can copy and paste

How to replace search button with link?
hi to everbody.
i have a search submit form and button like this :

<form id="f

PHP error (line 38) my website
Hello everyone, I'm new on this
and I got a web site thats got a error not showing the photos on<

Can I call a class inside a function?
I have a class written in another file that handles my image resizing.

Can I do this (php say

Help with usergroups? prolly really quick
So were coding our own forums for a game system we made an we have the users level setup but now I n

url- go to webpage
i have an input text field and submit button.

how do i make the url entered into the textfiel

php + mysql count consecutive data
I have a database of values and I want to work out how to display them if the values match a consecu

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