Si alguien me puede dar una mano mas que agradecido. Saludos.
Código PHP:
<?php
$host="localhost";
$username="localhost";
//$password="";
$db_name="test";
$tbl_name="usuarios";
mysql_connect("$host", "$username")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
$myusername=$_POST['cuit'];
$mypassword=$_POST['password'];
$myusername = stripslashes($myusername);
$mypassword = stripslashes($mypassword);
$myusername = mysql_real_escape_string($myusername);
$mypassword = mysql_real_escape_string($mypassword);
$sql="SELECT cuit,password FROM $tbl_name WHERE cuit='.$myusername.' and password='.$mypassword.'";
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
session_register("cuit");
session_register("password");
header("location:login_success.php");
}
else {
echo "Usuario o Password Incorrectos";
}
?>