wanna finish that

01/23/2014 22:26 Gol.D.Roger#1
can anyone just tell me pls where i can upload the silkroad website i have it already on my localhost with xampp but i need a FREE one just for me and my friends thats why i dont need something professional so is anyone there that can help me out with that problem ?
01/23/2014 23:07 Callum#2
Buy a host for like $4 a month and use FireZilla
01/23/2014 23:15 Gol.D.Roger#3
i maked it with filezilla and it doesnt worked i used bplaced for that did i something wrong ? i got everytime an error on the site

here was anything wrong $this->sqlLink = sqlsrv_connect($mssql_server, $db); but idk what the hell it was it says on line 15 and its that i used filezilla and bplaced everything worked fine only this one doesnt wanted to work
01/24/2014 00:26 WickedNite#4
wrong db connection obviously.
01/24/2014 01:01 Gol.D.Roger#5
Dam i didnt change anything in the databases so it can conmect i only edited the config for the website pc name ip and so on i thought that was it what must i do ... i really wanna set it up this time i failed 2 times and gave it up
01/24/2014 01:45 iNhaLaToR#6
Sqlsrv Connect functions are only available on Windows. On Linux you may use mssql_connect or pdo_dblib.. Pretty hard to figure out whats working.. Spend a lot time to it :/
01/24/2014 08:34 Gol.D.Roger#7
Iam using windows 7 ultimate 64 bit version ???

Bump

look here for the problem [Only registered and activated users can see links. Click Here To Register...] and i show you all that you can better look whats wrong



<?php
class mssql {
var $config = "config.inc.php";
var $sqlLink;
var $sqlQuery;
var $rowCount;
var $arr;

function dbOpen($dbName) {
if (!$this->sqlLink) {
include_once("$this->config");
global $mssql_server;
$db = array("Database"=>"$dbName");
$this->mssql_server = $mssql_server;



this one is the problem -> $this->sqlLink = sqlsrv_connect($mssql_server, $db);
if (!$this->sqlLink) {
echo "Error: Connection to the database couldn't be established. <br />";



}
return;
} else {
exit;
}
}
function dbClose() {
sqlsrv_close($this->sqlLink);
}
function dbQuery($string) {
$this->sqlQuery = sqlsrv_query($this->sqlLink, $string);
if(!$this->sqlQuery){
echo "Error: Query execution failed. <br />";
die( print_r( sqlsrv_errors(), true));
}
return $this->sqlQuery;
}
function numRows($string) {
$params = array();
$opt = array("Scrollable" => SQLSRV_CURSOR_KEYSET);
$stmt = sqlsrv_query($this->sqlLink, $string, $params, $opt);
$this->rowCount = sqlsrv_num_rows($stmt);

return $this->rowCount;
}
function fetchArray($string) {
$query = $this->dbQuery($string);
$this->arr = sqlsrv_fetch_array($query);

return $this->arr;
}
function getFortData($fortID) {
$row = $this->fetchArray("SELECT * FROM _SiegeFortress WHERE FortressID = $fortID");
echo '<td style="border:1px solid #3f3f3f;">';
$fortName = $row["FortressID"];
switch ($fortName) {
case 1:
echo "<img style='vertical-align:middle;' src='img/fort-jangan.png' /></td><td style='border:1px solid #3f3f3f;width:160px;'>Jangan fortress</td>";
break;
case 3:
echo "<img style='vertical-align:middle;' src='img/fort-hotan.png' /></td><td style='border:1px solid #3f3f3f;width:160px;'>Hotan fortress</td>";
break;
case 6:
echo "<img style='vertical-align:middle;' src='img/fort-bandit.png' /></td><td style='border:1px solid #3f3f3f;width:160px;'>Bandit fortress</td>";
break;
}
echo '</td>';
echo '<td style="border:1px solid #3f3f3f;width: 250px">';
$guildID = $row["GuildID"];
$guildName = $this->fetchArray("select Name from _Guild where ID = $guildID");
echo $guildName['Name'];
echo '</td>';
echo '<td style="border:1px solid #3f3f3f;width: 220px;">';
echo $row['TaxRatio']."%";
echo '</td>';
}
}
?>

or could anyone of you give me a website thats already on elitepvpers that works with filezilla if you mean that will work ??