note 106925 deleted from language.types by tularis

From: Date: Mon, 19 Dec 2011 19:40:06 +0000
Subject: note 106925 deleted from language.types by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-185156@lists.php.net to get a copy of this message
Note Submitter: sunrise Reason: non-english ---- stergere <body> <b>Cautare inregistrari in vederea stergerii</b> <p> <form method="POST" action="delete.php"> Numele cautat: <input type="text" name="nume"><br> <input type="submit" value="Trimite"> </form> </body> </html> <head> <title></title> </head> <body> <?php include "conexiune.php"; $nume=$_POST['nume']; $sql=mysql_query("SELECT * FROM proba WHERE nume LIKE '%$nume%'"); echo "<table border=\"1\">"; echo "<tr><td>ID</td><td>Nume</td><td>Prenume</td></tr>"; while ($row=mysql_fetch_row($sql)) { echo "<tr><td>$row[0]</td><td>$row[1]</td><td>$row[2]</td></tr>"; } echo "</table>"; mysql_close($conexiune); ?> <p> <form method="POST" action="delete1.php"> ID-ul inregistrarii ce va fi stearsa: <input type="text" name="id" size="3"><br> <input type="submit" value="Trimite"> </form> </body> </html> <head> <title></title> </head> <body> <?php include "conexiune.php"; $id=$_POST['id']; $sql=mysql_query("DELETE FROM proba WHERE id='$id'"); if (!$sql) { die(mysql_error()); } else { echo "datele au fost sterse"; } mysql_close($conexiune); ?> </body> </html>

« previous php.notes (#185156) next »