Location: PHPKode > scripts > Web Open Patch > web-open-patch/ex1.php
<?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);

?>
Return current item: Web Open Patch