Junior Spellweaver
- Joined
- Jan 1, 2009
- Messages
- 101
- Reaction score
- 13
F**k this errors a betch. LOLUmmm. Did you manually create WEBSITE_DBF ? or.. execute the query? I manually created it and that seemed to get rid of the problem, also. Run MSQL as admin.
Version 5.3.1 and both the mssql extensions enabled.Could be an error with your WAMP, are you selecting the correct extensions & the correct version of PHP?
Fatal error: Call to undefined function mssql_connect()... or MsSQL functions unchecked.
This is most likely because, even with MSSQL functions enabled, you do not have a valid version of "ntwdblib.dll" in your PHP bin. (Whether it be fore WAMP, XAMPP, Program Files > PHP, or IIS.)
You can resort to this guide by Error 404. (This guide can work for all servers, just as long as you know where the PHP bin is.)
You need to upgrade your ntwdblib.dll file in your PHP bin folder. Google it for a download.
Added an Error Support fix for this error to the original post.
This webpage has a redirect loop.
The webpage at http://localhost/install.php?step=0 has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
Hey guys, i love the site, but problem is, i love the demo one better, i thought it may have been the demo one but really, its not witch put me off it, and also, i would like to know if anyone knows the Mssql Login script so i can add the login script on my OWN website?
thanks
<?php
clean_globals();
$sql_host=".\SQLEXPRESS";
$sql_user="sa";
$sql_pass="";
$pass_salt="kikugalanet";
$link = mssql_connect($sql_host,$sql_user,$sql_pass);
mssql_select_db("ACCOUNT_DBF");
session_start();
function clean_globals()
{
foreach($_POST as $key => $value)
{
$_POST[$key] = clean($value);
}
foreach($_GET as $key => $value)
{
$_GET[$key] = clean($value);
}
foreach($_COOKIE as $key => $value)
{
$_COOKIE[$key] = clean($value);
}
foreach($_REQUEST as $key => $value)
{
$_REQUEST[$key] = clean($value);
}
}
function clean($data)
{
$data = htmlentities($data);
$data = preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|--|\\\\)/"),"",$data);
$data = addslashes($data);
return $data;
}
function logged_in()
{
if (isset($_SESSION['logged_in']))
{
return 1;
}
else
{
return 0;
}
}
function login($account,$password)
{
global $pass_salt;
$query=mssql_query("SELECT * FROM ACCOUNT_TBL WHERE account='$account'");
$get=mssql_fetch_array($query);
if (mssql_num_rows($query))
{
if ($get['password']==md5($pass_salt.$password))
{
$_SESSION['logged_in'] = $account;
header("Location: ".$_SERVER['REQUEST_URI']);
return false;
}
else
{
return "Password is incorrect.";
}
}
else
{
return "Account does not exist.";
}
}
if (logged_in())
{
if (isset($_GET['logout'])) {unset($_SESSION['logged_in']); header("Location: ".$_SERVER['REQUEST_URI']);}
echo "You are logged in!<br/><a href='?logout'>Logout</a>";
}
else
{
if (isset($_POST['account']))
{
echo "Posted";
$login = login($_POST['account'],$_POST['password']);
echo $login;
}
?>
<form method="post">
<label>Username: <input type="text" maxlength="16" name="account" /></label><br/>
<label>Password: <input type="password" maxlength="20" name="password" /></label><br/>
<input type="submit" value="Login" />
</form>
<?php
}
?>
treachery you wouldnt happen to know when the ETA for v2 is? and good job with v1 i love it i can edit stuff at school now.it makes it awsome
how to fix vote system?
A solution to the undefined variables is on the first post.