<?php
$host="127.0.0.1";//server ip
$user = ""; //username
$pw = ""; //password
$db = "Telecaster"; //database
$connect = mssql_connect($host,$user,$pw)
or die("Can't connect to the datebase.");
mssql_select_db($db)
or die("Can't select the datebase");
$Query="SELECT count(*) from dbo.Character where login_time>logout_time";
$Result = mssql_query($Query,$connect);
while ($row=mssql_fetch_row($Result)) {
$Res=$row[0];
}
echo ($Res);
?>
Did it=) Works=)
Leechers must thank!
Quote:
Originally Posted by Tekknoid
See it right, but not all in e-pvp are stupid leechers, for this guy dont understand, they should google.. first lesson in php is connect to a db.
your simple pastet script have some eklatant security reasons.. every stupid noob can read out your logins... for me we work only with config files seperate an cloak this with many reasons.
think its time to say this com in english how to secure your ******* windoofs;
Thread will be online in some days.
mfg
/edit: and no domt be stupid iam working with linux a longe time, Apache isnt bad only under wínplöd
|
If I understand what you mean - I must tell you that php scripts not shows in page code=)
If not - sorry for my english i'm Ukr=)