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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.