I m new to kohana.. Guyz plz point out the mistakes in the following code.. i m unable to run it.. Its a simple connection to database.. can i compare the query result and the psot item as i have done so.. plz correct..
<?php defined('SYSPATH') or die('No direct script access.');
/**
* Default Kohana controller.
*/
class index_Controller extends Controller {
public function index()
{
$db = new Database();
$index = new View('Index')
$db->connect();
name = $post['name'];
password = $post['password'];
$result = $db->query('name');
foreach($result as $row)
{
if($row->Password === password)
{
echo "login Successful" ;
}
}
}
}
?>