does no one know how to fix this stupid driver error i have all the pdo drivers installed and enabled and it just wont get past that screen.
does no one know how to fix this stupid driver error i have all the pdo drivers installed and enabled and it just wont get past that screen.
I can't get past the Datenbank Error. Anyone know how to fix? I've tried everything, all tables are imported, i have the PDO drivers....
Just stuck. =/
Code:<?php /* * @author Mythen (Tobias K.) * @copyright 2012 Mythen (Tobias K.) * @project NetCMS */ if(!defined("NDB")){ die("Der Aufruf dieser Datei ist nicht gestattet!"); } class MSSQL { protected static $dbResource; protected static $lastQuery; function __construct(){ try{ //self::$dbResource = new PDO("mssql:host=".$host.";dbname=".$datenbank.";charset=".$charset, $user, $pass); self::$dbResource = new PDO("sqlsrv:Server=localhost;Database=Warz", "root", "pass"); self::$dbResource->exec("SET NAMES 'UTF8'"); }catch(PDOException $ex){ NDB::showError("Datenbank Error", "Es konnte keine Verbindung zur Datenbank hergestellt werden.<br><br>Grund:<br>".$ex->getMessage()); } } public static function sendQuery($qry){ if(strpos($qry, ";") !== false){$qry = "";} try{ self::$lastQuery = self::$dbResource->prepare($qry); self::$lastQuery->execute(); }catch(PDOException $ex){ NDB::showError("Datenbank Error", "<b>Invalid SQL:</b><br>".$qry."<br><br><b>Fehler Meldung:</b><br>".$ex->getMessage()); } return self::$lastQuery; } public static function fetchArray($qry = null){ if($qry !== null){ self::$lastQuery = $qry; } $result = self::$lastQuery->fetch(PDO::FETCH_ASSOC); return $result; } public static function count($table, $where = "", $order = ""){ if(!empty($where)){ $qry = self::sendQuery("SELECT COUNT(*) as count FROM ".$table." WHERE ".$where.$order); $fetch = self::fetchArray($qry); return $fetch["count"]; }elseif(!empty($order)){ $qry = self::sendQuery("SELECT COUNT(*) as count FROM ".$table." ".$order); $fetch = self::fetchArray($qry); return $fetch["count"]; }else{ $qry = self::sendQuery("SELECT COUNT(*) as count FROM ".$table); $fetch = self::fetchArray($qry); return $fetch["count"]; } } public static function getInsertID(){ $result = self::$dbResource->lastInsertId(); return $result; } public static function getTables($db){ $tables = array(); $result = self::sendQuery("SHOW TABLES FROM `".$db."`"); while ($row = self::fetchArray($result)) { $tables[] = $row[0]; } return $tables; } function __destruct(){ self::$dbResource = null; } } ?>
Thumbs up! Thanks to you now I can see the main page and log in. But it seems that it doesn't have any functions, I mean, all the links are broken because in the download that iKasu posted there is no account, market, ranking, trading folders and etc. If anyone made it, please post so people can use. If someone is working on them, let me know, I wanna try to help.
Guys! You're making a nonsense! Do not use this site! It lends itself to the SQL injections, iKasu will not let you live in peace, it will constantly break your database! Also this site has a huge flaw! There's a lot of different ways Dupe things.!
I made some modifications to it kkkk
![]()
Last edited by Yuri-BR; 14-10-13 at 01:25 AM.
i now get this once i have everything working.
Notice: Undefined variable: sliders in C:\inetpub\wwwroot\system\lib\class\template\template.class.php on line 158
Notice: Undefined variable: paginateArray in C:\inetpub\wwwroot\system\lib\class\template\paginate.class.php on line 51
Please delete this theard!!!!!!!!!!!
Version is in the header does not work, iKasu hurt her, that's my Corrected version is fully working)))
WarZED Site ( Fixed)
Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file C:\inetpub\wwwroot\site2/system/templates/compiled\wrt532b385d6a84c8.82877324' in C:\inetpub\wwwroot\site2\system\lib\class\smarty\sysplugins\smarty_internal_write_file.php:44 Stack trace: #0 C:\inetpub\wwwroot\site2\system\lib\class\smarty\sysplugins\smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile('C:\inetpub\wwwr...', 'compileTemplateSource() #2 C:\inetpub\wwwroot\site2\system\lib\class\smarty\sysplugins\smarty_internal_templatebase.php(374): Smarty_Internal_TemplateBase->fetch('C:\inetpub\wwwr...', NULL, NULL, NULL, true) #3 C:\inetpub\wwwroot\site2\system\lib\class\template\template.class.php(79): Smarty_Internal_TemplateBase->display('C:\inetpub\wwwr...') #4 C:\inetpub\wwwroot\site2\index.php(45): Template->displaySite('', 1395341405.3823) #5 {m in C:\inetpub\wwwroot\site2\system\lib\class\smarty\sysplugins\smarty_internal_write_file.php on line 44
Error *.*
i have a problem with database connection php sql driver is installed
Microsoft Drivers 3.0 for PHP: http://www.microsoft.com/en-us/downl....aspx?id=20098
Microsoft Drivers 3.0 for PHP is installed :-D