📄 stergere2.php
字号:
<html>
<head>
<link href="img/stil.css" rel="stylesheet" type="text/css">
</head>
<?php
mysql_connect("localhost", "root", "ILEllysffm") or die(mysql_error());
mysql_select_db("concurs") or die(mysql_error());
$id = $_POST['id'];
$nume_exista = mysql_query("SELECT * FROM candidati WHERE id='$id'")or die(mysql_error());
$match=mysql_num_rows($nume_exista);
if ( $match == 0 )
{
echo "<center>Candidatul nu a fost gasit.";
?>
<br><a href="stergere1.html" target="mainframe"><strong>Cauta din nou</strong></a><br>
<?php
}
else
{
echo "Candidatul a fost sters. <br> Informatiile sunt prezentate mai jos: <br><br>";
while($row = mysql_fetch_array($nume_exista))
{
?>
</font>Nume: <font color = "FF0000">
<?php
echo " ". $row['nume'] ."";
?>
</font><br>Prenume: <font color = "FF0000">
<?php
echo " ". $row['prenume'] ."";
?>
</font><br>Adresa: <font color = "FF0000">
<?php
echo " ". $row['adresa'] ."";
?>
</font><br>Telefon: <font color = "FF0000">
<?php
echo " ". $row['telefon'] ."";
?>
</font><br>Mobil: <font color = "FF0000">
<?php
echo " ". $row['mobil'] ."";
?>
</font><br>Nota proba 1: <font color = "FF0000">
<?php
echo " ". $row['proba1'] ."";
?>
</font><br>Nota proba 2: <font color = "FF0000">
<?php
echo " ". $row['proba2'] ."";
?>
</font><br>Nota proba 3: <font color = "FF0000">
<?php
echo " ". $row['proba3'] ."";
?>
</font><br>Media: <font color = "FF0000">
<?php
echo " ". $row['media'] ."";
mysql_query("DELETE FROM candidati WHERE id = '$id'")or die(mysql_error())
?>
<br><br>
</font>
<a target="mainframe" href="welcome.html">Index</a><br>
<?php
}
}
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -