Php news publishing system problems, urgent !!! How can I obtain the Database id by deleting the modification function in the background management of the PHP news publishing system ?? How do I know which news I deleted? Urgent !!, & Lt; ahref = & quot; modifynews. php? Id = & lt ;? Phpecho $ id? Php news publishing system problems, urgent !!!
How can I obtain the Database id by deleting the modification function in the background management of the PHP news publishing system ?? How do I know which news I deleted? Urgent !!
------ Solution --------------------
"> Modify/delete // If you do not know whether this is correct, you can do it.
PASS id as a condition
Modifynews. php
$ _ GET ['id']
Then process the id.
------ Solution --------------------
Discussion
How can I obtain the Database id by deleting the modification function in the background management of the PHP news publishing system ?? How do I know which news I deleted? Urgent !!
------ Solution --------------------
Aren't you going to generate a list of Mr?
------ Solution --------------------
First, you have to have an id for the news in the database. this is just an example. First, let's look at the index or unique id in your database.
Then, Change $ row = mysql_fetch_array to mysql_fetch_assoc.
Then you can {
// Add a print_r ($ row );
// Check the structure of the array on the page, and you will know which id should be specific.
// Generally $ row ['id field name'];
}
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.