CodePudding
Home
front end
Back-end
Net
Software design
Enterprise
Blockchain
Mobile
Software engineering
database
OS
other
Home
>
front end
> PHP beginners have a problem for answers
PHP beginners have a problem for answers
Time:09-16
The code is as follows:
<meta charset="utf-8" & gt;
Modify the commodity information & lt;/title>
<body style="margin: 0 px 0 px 0 px 0 px;">
<?
If ($_REQUEST [" P_ID "]!="")
{
$pid=$_REQUEST [" P_ID "];
$conn=mysqli_connect (" localhost ", "root", "");//1 link to the database server
$select=mysqli_select_db (" 88 kengdao_db ", $conn);//2, select the database
$STR="select * from Product_Info where P_ID=". $pid;
$arr=mysqli_query ($conn, "$STR");//delete statements
$result=mysqli_fetch_array ($arr);
?>
Modify the commodity information
Name of commodity: & lt;/td>
Commodity images: & lt;/td>
Price: & lt;/td>
Summary:
"Width=" 130 "height=" 130 "/& gt;
<?
}
?>