Location: PHPKode > scripts > Web Open Patch > web-open-patch/ex2.php
<?php

include_once("WebOpenPatch.php");

$wop = new WebOpenPatch();

$usuario = $_POST['usuario'];
$senha   = $_POST['senha'];

$sql   = $wop->wopAntiSqlInjection("SELECT * FROM usuarios WHERE usuario='{$usuario}' AND senha='{$senha}'");
$query = mysql_query($sql);
$list  = mysql_fetch_object($query);

?>
Return current item: Web Open Patch