note 106923 deleted from language.types by tularis
| From: | tularis@php.net | Date: | Mon, 19 Dec 2011 19:39:59 +0000 |
| Subject: | note 106923 deleted from language.types by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-185154@lists.php.net to get a copy of this message | ||
Note Submitter: sunrise
Reason: non-english
----
exemplu de cautare
<html>
<head><title>Cautare</title>
</head>
<body>
<b>Cautare inregistrari</b>
<form method="POST" action="where.php">
Numele cautat: <input type="text" name="nume1"><br>
<input type="submit" value="Trimite">
</form>
</body>
</html>
<head>
<title></title>
</head>
<body>
<?php
include "conexiune.php";
$nume1=$_POST['nume1'];
$sql=mysql_query("SELECT * FROM proba WHERE nume='$nume1'");
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);
?>
</body>
</html>