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

Is there a quick way to do this?
Hi all,

I need to create a mysql table from php that goes a little something like this

PHP hyperlinks generator - HELP plz
Hi

I need some help to get this done using php:


1 - I have few hyperlinks say 500

Error with login script
I am getting an error with my login script:

Error:
Code: Warning: Cannot modify header inf

Table colours fail when extra row added
Hey Gurus,

I got a weird problem with formating the colour of a table made in php. Everything

check comment for html
hi, I just wanted to check if a comment a user posts contains HTML, and if it does, to not allow it

upload only text files
hi guys i want to upload only text like like (pdf,note pad and ofiice files) so can any one please t

Please help understand this code
I noticed the index page on my site was modified this morning and found this code inserted at the bo

Better Method of a Member Cloud
I assume most people know how tag clouds work, where the tags most used are bigger and the least use

PHP Game
hy i was wondering what's the best method in order to make some automatic updates in a php game
<

regex for quoted text within a string
I am still getting the hang of regex expressions, but I cant seem to figure out how I would escape q

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