Simple PHP Management for DW

Source: Internet
Author: User
On this page, there are two behavior buttons, one is "modify" and the other is "delete".

Click "Modify", no problem; as shown in:

Click "Delete" after the jump page no data record, in fact, in the browsing page has not been seen.
Press normal to jump to the official delete page, and then click the Delete button below the corresponding record bar, to complete the deletion, so that is right?

The question is, where is it?


Reply to discussion (solution)

What are the deleted query statements?

if ((Isset ($_get[' id ')) && ($_get[' id ']! = ")) {
$deleteSQL = sprintf (" DELETE from Price WHERE id=%s ",
getsqlvaluestring ($_get[' id ']," text "));

mysql_select_db ($database _myconn, $myconn);
$Result 1 = mysql_query ($deleteSQL, $myconn) or Die (Mysql_error ());
}

$colname _recordset1 = "1";
if (isset ($_get[' id ')) {
$colname _recordset1 = (GET_MAGIC_QUOTES_GPC ())? $_get[' id ']: addslashes ($_get[' id ') );
}
mysql_select_db ($database _myconn, $myconn);
$query _recordset1 = sprintf ("SELECT * from price WHERE id =%s", $colname _recordset1);
$Recordset 1 = mysql_query ($query _recordset1, $myconn) or Die (Mysql_error ());
$row _recordset1 = Mysql_fetch_assoc ($Recordset 1);
$totalRows _recordset1 = mysql_num_rows ($Recordset 1);

if (Isset ($_gte[' id ')) {
$query _recordset1 = sprintf ("SELECT * from price WHERE id =%s", $colname _recordset1);
}else{
$query _recordset1 = "SELECT * from Price WHERE 1=1";
}

if (Isset ($_gte[' id ')) {
$query _recordset1 = sprintf ("SELECT * from price WHERE id =%s", $colname _recordset1);
}else{
$query _recordset1 = "SELECT * from Price WHERE 1=1";
}


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The big God, the younger brother still did not understand.

I'm guessing you just executed the deletion code.

I'm guessing you just executed the deletion code.

QQ Bar

Edit page:
Delete

To delete a page:
if ($_post) {
is a form submission, performing a delete
}else {
Get deleted records by $_get[' id '], generate delete page
}

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.