yes hello now before refresh
it shows like this
result=>1Error=> records is sucessfully Deleted
now how to remove error

Great:)
It proves once again that there is nothing wrong with your code, it just the human mistake that is failing to recognize if the data is deleted or not :) Please be sure about it.

means what to do now???

why this code is not workin on internet plz tell me dear

means what to do now???

means there's nothing wrong with your code.Maybe you are failing to check properly if the data has been deleted from the database or not.
How do you check if the particular row is deleted form the Db, after executing the script?

i am using this script to check that data is deleted or not
PHP CODE

if($result){
    echo "<meta http-equiv=\"refresh\" content=\"0;URL=del.php\">";
    }

i am using this script to check that data is deleted or not
PHP CODE
if($result){
echo "<meta http-equiv=\"refresh\" content=\"0;URL=del.php\">";
}

You should have checked that, directly in the database with select count query.
Moreover all browsers cannot recognize "http-equiv", use header instead like -

$ur_url = "http://del.php";
header("Location:$ur_url");

If you want to transfer to some other the page del.php

hello sir plz where u have been gone plz take me out of this problem

sir i am directly checking in my databse after deleting recodrs but my database not deleted any records

do somthing sir
manish mannan

sir i am directly checking in my databse after deleting recodrs but my database not deleted any records

do somthing sir
manish mannan

Did you read my above post and made changes in the code

now i am using this but this code is not working

if($result){
    $ur_url = "http://www.mydomain.com/del.php";
    header("Location:$ur_url");
    }

hello frenz,
i m curently doing a project in php with Mysql under a topic "stock management"
i have juz created my pages such as for log in,insert
my probs is delete,view stock in runtime is not working
would u help me plz

hello friend this topic has been closed plz create new topic and invite me iwill definetily help u my dear

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.