note 126077 deleted from function.mail by cmb
| From: | cmb@php.net | Date: | Thu, 13 May 2021 11:18:18 +0000 |
| Subject: | note 126077 deleted from function.mail by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-216383@lists.php.net to get a copy of this message | ||
Note Submitter: beni at gmail dot com
----
<?php
$flag=1;
if(!isset($_SESSION['usuario']))
{
$conexion=mysqli_connect("localhost","root","","empresa")
or die(mysqli_error());
$consultaUsuario="SELECT * from producto WHERE usuario LIKE
'".$_GET['usuario']."' AND contrasinal LIKE
'".$_GET['contrasinal']."'";
echo $consultaUsuario;
$res=mysqli_query($conexion,$consultaUsuario);
if (mysqli_num_rows($res)==0) {
echo "Usuario ou contrasinal incorrectos";
echo "<form action='1.17.login.html'>
<input type='submit' name='volver' value='Volver'>
</form>";
$flag=0;
}
}
if ($flag==1) {
echo "<table>";
echo "<tr><th>Numero</th><th>Nome</th><th>Num Empregado
Asignado</th><th>LÃmite Crédito</th></tr>";
echo"<form action='1.16.datos.php'>
<br><input type='submit' name='empresa' value='Ordenar polo
nome da Empresa'>
<br><input type='submit' name='empregado' value='Ordenar polo
Empregado Asignado'>
</form>";
}
?>
?>
</form>
</body>
</html>