william7neace Posted December 16, 2010 Share Posted December 16, 2010 Ok guys i am having problems for some reason with a chat mod that i have... Have everything set up, but when i click my chat button i get this How can i fix this?? Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /home/darkshad/public_html/mysql.php on line 2 Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/darkshad/public_html/mysql.php on line 3 e Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/darkshad/public_html/chatrooms.php on line 12 Access denied for user 'root'@'localhost' (using password: YES) Quote Link to comment Share on other sites More sharing options...
Curt Posted December 16, 2010 Share Posted December 16, 2010 do you get this error on every page ? if so check your config.php file and make sure the info is correct. Quote Link to comment Share on other sites More sharing options...
william7neace Posted December 16, 2010 Author Share Posted December 16, 2010 No i only get it on my when i click on chat... Every other page is ok Quote Link to comment Share on other sites More sharing options...
Curt Posted December 16, 2010 Share Posted December 16, 2010 Is your chat mod a V1 Mod ? does it have this at the top of it : require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); if it does replace all that with : include "globals.php"; If not post the code so we can have a look.. Quote Link to comment Share on other sites More sharing options...
william7neace Posted December 16, 2010 Author Share Posted December 16, 2010 I did what you said and it fixed it... but i got this Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/darkshad/public_html/chatrooms.php on line 12 Then when i try to start a new Chatroom it says this Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /home/darkshad/public_html/mysql.php on line 2 Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/darkshad/public_html/mysql.php on line 3 e Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/darkshad/public_html/startroom.php on line 12 Access denied for user 'root'@'localhost' (using password: YES) Quote Link to comment Share on other sites More sharing options...
Curt Posted December 16, 2010 Share Posted December 16, 2010 hmm maybe check the startroom.php too ? and convert that to v2 aswell ? as for the errors...i personally cant be of any more help with out actually seeing the code...but maybe someone else can..lol good luck :) Quote Link to comment Share on other sites More sharing options...
Djkanna Posted December 16, 2010 Share Posted December 16, 2010 [infobox]Please refrain from creating more than one topic for the same problem[/infobox] Quote Link to comment Share on other sites More sharing options...
Jordan Palmer Posted December 16, 2010 Share Posted December 16, 2010 That chat system is really useless, Why not try using wsIrc only takes a few seconds to create a room and what not :) Quote Link to comment Share on other sites More sharing options...
william7neace Posted December 16, 2010 Author Share Posted December 16, 2010 Ok i got this code from the wsIrc website you were talking about Jordan <IFRAME SRC=http://www.wsirc.com/?username=wsirc_******&server=binary.ipocalypse.net%3A6667&channel=Dark%20Shadows&autojoin=false&color=%23000000&dark=true STYLE='width: 100%; height: 900;' WIDTH=100% HEIGHT=900 FRAMEBORDER=0 BORDER=0 SCROLLING=NO SCROLLBAR=NO></IFRAME> Now what do i put it in to??? Quote Link to comment Share on other sites More sharing options...
Dominion Posted December 16, 2010 Share Posted December 16, 2010 Ok i got this code from the wsIrc website you were talking about Jordan <IFRAME SRC=http://www.wsirc.com/?username=wsirc_******&server=binary.ipocalypse.net%3A6667&channel=Dark%20Shadows&autojoin=false&color=%23000000&dark=true STYLE='width: 100%; height: 900;' WIDTH=100% HEIGHT=900 FRAMEBORDER=0 BORDER=0 SCROLLING=NO SCROLLBAR=NO></IFRAME> Now what do i put it in to??? Well where you want wsirc to show... Being an irc I would suggest its own page so people can keep it open in a tab. Quote Link to comment Share on other sites More sharing options...
william7neace Posted December 16, 2010 Author Share Posted December 16, 2010 Thx guys got the wsIrc Chat room alll set up :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.