<?php
include_once("WebOpenPatch.php");
$wop = new WebOpenPatch();
$usuario = $wop->wopAntiSqlInjection($_POST['usuario']);
$senha = $wop->wopAntiSqlInjection($_POST['senha']);
$sql = "SELECT * FROM usuarios WHERE usuario='{$usuario}' AND senha='{$senha}'";
$query = mysql_query($sql);
$list = mysql_fetch_object($query);
?>
|