Jump to content

Help please


therhs

Recommended Posts

Hello i am Using PhpFusion for my Site  , when i trying to add new panel like this

 

openside("Monitor");

include(BASEDIR."monitor.php");

closeside();

 

It shows me this :

 

Access denied for user 'ODBC'@'localhost' (using password: NO)Access denied for user 'ODBC'@'localhost' (using password: NO)Access denied for user 'ODBC'@'localhost' (using password: NO)Access denied for user 'ODBC'@'localhost' (using password: NO)

 

 

Heres the  monitor.php code

 

 

<?php
//db shits
$hosts = "localhost";
$lietotajs = "root";
$parole = "myPassword";
$db = "monitor";


//Viss pareejais shits (iipashiem pro ieteicams neko nelabot)
$konekcija = mysql_connect($hosts,$lietotajs,$parole) or die("Nesanaca piekonekteties db");
mysql_select_db($db,$konekcija) or die("Nesanaca izveleties db");
$vaicajums1="SELECT * FROM details";
$rezultats1=mysql_query($vaicajums1,$konekcija) or die ("Nesanaca izpildit vaicajumu #1");
$aile = mysql_fetch_array($rezultats1);
$nakamamape=$aile['nextmap'];
$laiksatlicis=$aile['timeleft'];
$laikalimits=$aile['timelimit'];
$mape=$aile['mapname'];
$maxplayers=$aile['maxplayers'];
$rezultatst=$aile['scoret'];
$rezultatsct=$aile['scorect'];
$vaicajums2ct="SELECT * FROM players WHERE team='CT'";
$rezultats2ct=mysql_query($vaicajums2ct,$konekcija) or die ("Nesanaca izpildit vaicajumu #2");
$speletajict=mysql_num_rows($rezultats2ct);
$vaicajums2t="SELECT * FROM players WHERE team='TERRORIST'";
$rezultats2t=mysql_query($vaicajums2t,$konekcija) or die ("Nesanaca izpildit vaicajumu #2");
$speletajit=mysql_num_rows($rezultats2t);
$vaicajums2unknow="SELECT * FROM players WHERE team='SPECTATOR' OR team='UNASSIGNED'";
$rezultats2unknow=mysql_query($vaicajums2unknow,$konekcija) or die ("Nesanaca izpildit vaicajumu #2");
$speletajiunknow=mysql_num_rows($rezultats2unknow);
$speletaji=mysql_num_rows($rezultats2ct)+mysql_num_rows($rezultats2t)+mysql_num_rows($rezultats2unknow);
$brivisloti=$maxplayers-$speletaji;

echo "<font color=\"green\">» cs.PlayLine.Lv</font><br />";
echo "Statuss: ";
if($brivisloti=="0") { echo "nav brivu slotu"; } elseif($brivisloti=="1") { echo "1 br&#1086;vs slots"; } else { echo $brivisloti." br&#1086;vi sloti"; }     
echo "<br />Sp&#275;l&#275;t&#257;ji: $speletaji/$maxplayers";
echo "<br />Karte: $mape";
echo "<br />Laiks: $laiksatlicis/$laikalimits:00";
echo "<br />N&#257;kam&#257; mape: $nakamamape";

echo "<br />";

echo "<br /><font color=\"blue\">» CT komanda ($rezultatsct)</font><br />";
while($aile2ct = mysql_fetch_array($rezultats2ct)) {
echo $aile2ct['name']." (".$aile2ct['frags']."/".$aile2ct['deaths'].")<br />";
}

echo "<br />";
echo "<font color=\"red\">» T komanda ($rezultatst)</font><br />";
while($aile2t = mysql_fetch_array($rezultats2t)) {
echo $aile2t['name']." (".$aile2t['frags']."/".$aile2t['deaths'].")<br />";
}

echo "<br />";
echo "<font color=\"gray\">» Skat&#299;t&#257;ji</font><br />";
while($aile2unknow = mysql_fetch_array($rezultats2unknow)) {
echo $aile2unknow['name'];
}

mysql_free_result($rezultats1);
mysql_free_result($rezultats2ct);
mysql_free_result($rezultats2t);
mysql_free_result($rezultats2unknow);
mysql_close($konekcija);
?>

Help please 

 

 

Link to comment
https://forums.phpfreaks.com/topic/107519-help-please/
Share on other sites

you need to set the user name and password for your database, those initial set of values look like they came with the default configuration,

 

if that doesn't do it try looking to the PHP Fusion help board as you are using specialty software and this forum is geared towards people that want to learn rather than a quick fix

Link to comment
https://forums.phpfreaks.com/topic/107519-help-please/#findComment-551163
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.