Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server
You last visited: Today at 11:47

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[problem] Paradise Website

Discussion on [problem] Paradise Website within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2010
Posts: 7
Received Thanks: 0
[problem] Paradise Website

i Download Paradise website template
and i edit all stuffs but, when i try to add news it's give me an Error

this is the Error
PHP Code:
Warningmysql_connect() [function.mysql-connect]: Host 'Master' is not allowed to connect to this MySQL server in C:\wamp\www\modules\AddNews.php on line 25

Warning
mysql_select_db() expects parameter 2 to be resourceboolean given in C:\wamp\www\modules\AddNews.php on line 26

Warning
mysql_query() [function.mysql-query]: [2002A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in C:\wamp\www\modules\AddNews.php on line 32

Warningmysql_query() [function.mysql-query]: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respondin C:\wamp\www\modules\AddNews.php on line 32

Warning
mysql_query() [function.mysql-query]: A link to the server could not be established in C:\wamp\www\modules\AddNews.php on line 32

Fatal error
Maximum execution time of 60 seconds exceeded in C:\wamp\www\modules\AddNews.php on line 34 
and this is php file


PHP Code:
<?php
    session_start
();
    include(
"../modules/include/Config.php");
    require_once(
"../modules/include/Security.php");
    require_once(
"../modules/include/sqlConn.php");
    
    if(!isset(
$_SESSION['loggedin'])) {
        
header("location:./../?notLoggedIn");
    } else {
    
mssql_select_db($dbName1$dbConn) or die ("Couln't select database $dbName1");
    
$userID $_SESSION['name'];
    
$getUserJID mssql_query("select * from TB_User where StrUserID = '$userID'");
    while (
$row mssql_fetch_array($getUserJID)) {
        
$userJID $row['JID'];
        
$userGM  $row['sec_primary'];
    }
    if (
$userGM '1') {
        
header("location:./../?logout");
    } else {
        
$mysqlip "192.168.1.100";
        
$mysqlId "root";
        
$mysqlpw "";
        
$newsDb "sro_paradise";
        
        
$myConn mysql_connect($mysqlip$mysqlId$mysqlpw);
        
$selectdb mysql_select_db($newsDb$myConn);
        
        
$newsTitle $_POST['title'];
        
$newsContent $_POST['content'];
        
$newsAuthor $_POST['author'];
        
        
mysql_query("insert into sro_news(title, content, author) values ('$newsTitle', '$newsContent', '$newsAuthor')");

        
header("location:./../?newsSuccess");
        }
    }
?>
sunset117 is offline  
Old 12/16/2011, 22:54   #2
 
Doenertier's Avatar
 
elite*gold: 0
Join Date: Jun 2006
Posts: 403
Received Thanks: 64
the master got the wrong rights...
Doenertier is offline  
Old 12/17/2011, 02:48   #3
 
✗EpicSoul✗'s Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 1,189
Received Thanks: 531
check line 32 in addnews.php maybe thats where you went wrong
✗EpicSoul✗ is offline  
Reply


Similar Threads Similar Threads
[Release]Complete Paradise Silkroad Website
12/01/2013 - SRO PServer Guides & Releases - 44 Replies
http://img856.imageshack.us/img856/1921/sroweb.jpg Pasword: silkroad.rage zone Change DB connection in files: news.php, config.php (maye be others aswell explore yourself)
paradise trainer problem
10/29/2010 - S4 League - 8 Replies
hi ihr ich hab 2 kleine probleme mit dem paradise trainer immer wenn ich in ein spiel gehe sehe ich die map nicht oder falle durch die map ! und wenn ich das grafik einstellungen ändere kann ich mit glück drauf zocken aber ich seh sie nur nich das problem habe ich bei jeder map bis auf die map Tunnel kann mir da vllt iwer helfen?
Walker Problem on L2-Paradise
01/30/2006 - Lineage 2 - 1 Replies
Well the problem is i set my Buffer to buff me every 20 min, but all she does is Keep Spamming the buffs till she run out of MP, i checked the Options and all and they are at 20min. Any help tip that could fix that would be great. ty



All times are GMT +2. The time now is 11:47.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.