helo there, i need some help
this is the code (check if specific record exists), there is no problem
[php]
global $conn;
$strSQLExists = “select * from klas where name=’”.$values[“name”]."’";
$rsExists = db_query($strSQLExists,$conn);
$data=db_fetch_array($rsExists);
if($data)
{
// if the record exists
$message="
return false;
}
else
{
return true;
}
//but error is with this code
$strSQLExists = “select * from klas where name, nis=’”.$values[“name”]."’",’".$values[“nis”]."’";
[/php]
thanx for your help
// moderator note: please use the php bbcode.