Heres the error
Fatal error: Call to undefined function: execute() in /usr/local/psa/home/vhosts/brandsupplier.com/httpdocs/intelistaf/TMP2ixm026zit.php on line 22
heres the site
and heres the code
<?php require_once('Connections/Intelistaf.php'); ?>
<?php require_once('includes/functions.inc.php'); ?>
<?php
// begin Recordset
$query_Intelistaf = "SELECT * FROM pass";
$Intelistaf = $Intelistaf->SelectLimit($query_Intelistaf) or die($Intelistaf->ErrorMsg());
$totalRows_Intelistaf = $Intelistaf->RecordCount();
// end Recordset
// *** Start the session
session_start();
// *** Validate request to log in to this site.
$KT_LoginAction = $HTTP_SERVER_VARS["REQUEST_URI"];
if (isset($HTTP_POST_VARS["user"])) {
$KT_valUsername = $HTTP_POST_VARS['user'];
$KT_fldUserAuthorization = "";
$KT_redirectLoginSuccess = "success.php";
$KT_redirectLoginFailed = "fail.php";
$KT_rsUser_Source = "SELECT username, password ";
if ($KT_fldUserAuthorization != "" $KT_rsUser_Source .= "," . $KT_fldUserAuthorization;
$KT_rsUser_Source .= " FROM pass WHERE username='" . $KT_valUsername . "' AND password='" . $HTTP_POST_VARS['pass'] . "'";
$KT_rsUser=$Intelistaf->Execute($KT_rsUser_Source) or DIE($Intelistaf->ErrorMsg());
if (!$KT_rsUser->EOF) {
// username and password match - this is a valid user
$KT_Username=$KT_valUsername;
session_unregister("KT_Username"
session_register("KT_Username"
if ($KT_fldUserAuthorization != "" {
$KT_userAuth=$KT_rsUser->Fields($KT_fldUserAuthorization);
} else {
$KT_userAuth="";
}
session_unregister("KT_userAuth"
session_register("KT_userAuth"
if (isset($HTTP_GET_VARS['accessdenied']) && false) {
$KT_redirectLoginSuccess = $HTTP_GET_VARS['accessdenied'];
}
$KT_rsUser->Close();
session_unregister("KT_login_failed"
session_register("KT_login_failed"
$KT_login_failed = false;
// Add code here if you want to do something if login succeded
KT_redir($KT_redirectLoginSuccess);
}
$KT_rsUser->Close();
$KT_login_failed = true;
session_unregister("KT_login_failed"
session_register("KT_login_failed"
// Add code here if you want to do something if login fails
KT_redir($KT_redirectLoginFailed);
}
//PHP ADODB document - made with PHAkt 2.0.60?>
<html>
<head>
<title>Intelistaf</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000000;
}
td.right {
border-left-width: 1px;
border-left-style: dashed;
border-left-color: #999999;
}
-->
</style>
</head>
<body bgcolor="#CCCCCC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" height="100%">
<tr>
<td align="CENTER" valign="MIDDLE"><form METHOD="post" action="<?php echo $KT_LoginAction?>" name="login" id="login">
<table width="300" border="0">
<tr align="CENTER" valign="MIDDLE">
<td>Username</td>
<td class="right"><input name="user" type="text" id="user"></td>
</tr>
<tr align="CENTER" valign="MIDDLE">
<td>Password</td>
<td class="right"><input name="pass" type="password" id="pass"></td>
</tr>
<tr align="CENTER" valign="MIDDLE">
<td colspan="2"><input name="login" type="submit" value="Log In" id="login"></td>
</tr>
</table>
</form></td>
</tr>
</table>
</body>
</html>
<?php
$Intelistaf->Close();
?>
Just one thing I'm an Econ major and have never done this before so Im learning as I go...Thanks
whos that behind you?
Fatal error: Call to undefined function: execute() in /usr/local/psa/home/vhosts/brandsupplier.com/httpdocs/intelistaf/TMP2ixm026zit.php on line 22
heres the site
and heres the code
<?php require_once('Connections/Intelistaf.php'); ?>
<?php require_once('includes/functions.inc.php'); ?>
<?php
// begin Recordset
$query_Intelistaf = "SELECT * FROM pass";
$Intelistaf = $Intelistaf->SelectLimit($query_Intelistaf) or die($Intelistaf->ErrorMsg());
$totalRows_Intelistaf = $Intelistaf->RecordCount();
// end Recordset
// *** Start the session
session_start();
// *** Validate request to log in to this site.
$KT_LoginAction = $HTTP_SERVER_VARS["REQUEST_URI"];
if (isset($HTTP_POST_VARS["user"])) {
$KT_valUsername = $HTTP_POST_VARS['user'];
$KT_fldUserAuthorization = "";
$KT_redirectLoginSuccess = "success.php";
$KT_redirectLoginFailed = "fail.php";
$KT_rsUser_Source = "SELECT username, password ";
if ($KT_fldUserAuthorization != "" $KT_rsUser_Source .= "," . $KT_fldUserAuthorization;
$KT_rsUser_Source .= " FROM pass WHERE username='" . $KT_valUsername . "' AND password='" . $HTTP_POST_VARS['pass'] . "'";
$KT_rsUser=$Intelistaf->Execute($KT_rsUser_Source) or DIE($Intelistaf->ErrorMsg());
if (!$KT_rsUser->EOF) {
// username and password match - this is a valid user
$KT_Username=$KT_valUsername;
session_unregister("KT_Username"
session_register("KT_Username"
if ($KT_fldUserAuthorization != "" {
$KT_userAuth=$KT_rsUser->Fields($KT_fldUserAuthorization);
} else {
$KT_userAuth="";
}
session_unregister("KT_userAuth"
session_register("KT_userAuth"
if (isset($HTTP_GET_VARS['accessdenied']) && false) {
$KT_redirectLoginSuccess = $HTTP_GET_VARS['accessdenied'];
}
$KT_rsUser->Close();
session_unregister("KT_login_failed"
session_register("KT_login_failed"
$KT_login_failed = false;
// Add code here if you want to do something if login succeded
KT_redir($KT_redirectLoginSuccess);
}
$KT_rsUser->Close();
$KT_login_failed = true;
session_unregister("KT_login_failed"
session_register("KT_login_failed"
// Add code here if you want to do something if login fails
KT_redir($KT_redirectLoginFailed);
}
//PHP ADODB document - made with PHAkt 2.0.60?>
<html>
<head>
<title>Intelistaf</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000000;
}
td.right {
border-left-width: 1px;
border-left-style: dashed;
border-left-color: #999999;
}
-->
</style>
</head>
<body bgcolor="#CCCCCC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" height="100%">
<tr>
<td align="CENTER" valign="MIDDLE"><form METHOD="post" action="<?php echo $KT_LoginAction?>" name="login" id="login">
<table width="300" border="0">
<tr align="CENTER" valign="MIDDLE">
<td>Username</td>
<td class="right"><input name="user" type="text" id="user"></td>
</tr>
<tr align="CENTER" valign="MIDDLE">
<td>Password</td>
<td class="right"><input name="pass" type="password" id="pass"></td>
</tr>
<tr align="CENTER" valign="MIDDLE">
<td colspan="2"><input name="login" type="submit" value="Log In" id="login"></td>
</tr>
</table>
</form></td>
</tr>
</table>
</body>
</html>
<?php
$Intelistaf->Close();
?>
Just one thing I'm an Econ major and have never done this before so Im learning as I go...Thanks
whos that behind you?