Jump to content
  • 0

[help] Web ERROR PHP


claww

Question

i just made my website and i have few php scripts..... for top pvp/pk/ clan.... and ACM

 

so problem is this...  when i try looking  at TOP pvp/pk/clan or ACM i got error as my browser cannot connect..  in my database design for table Characters/Accounts for acces level is   "acceslevel" and in php script is "acces_Level"

 

so i got error to connect to site when i change in PHP script "acces_Level" into "acceslevel"

 

i try design my table - so i design my table in acces_level but i got error too

 

so when in php script acces_level is same as in database i get error  " cannot connect to website "  is the error as when you try to connect to a webpage and u dont have internet.....

 

anyone can help me ?   i really dont know what to do :<

 

i host the site on my computer i using WAMPSERVER

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

this is page for TOP 10 PLAYERS

 

 

scripts for TOP players/pvp/pk and account manager i took from this forum

 

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="eng" xml:lang="eng">
<head>

<title>Lineage ][ World</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<meta name="description" content="L2 World" />

<meta name="keywords" content="L2, Lineage, Epilogue, World, PvP" />
<meta name="generator" content="DataLife Engine (http://l2world.no-ip.info/)" />
<meta name="robots" content="all" />
<meta name="revisit-after" content="1 days" />
<link rel="search" type="application/opensearchdescription+xml" href="engine/opensearch.php" title=".:L2 World:. - Private Lineage 2 Epilogue Server" />
<link rel="alternate" type="application/rss+xml" title=".:L2 World:. - Private Lineage 2 Epilogue Server" href="rss.xml" />
<script type="text/javascript" src="templates/l2/js/thickbox.html"></script>
<script type="text/javascript" src="templates/l2/js/jquery.html"></script>
<script type="text/javascript" src="templates/l2/js/jquery.scrollTo-min.html"></script>
<script type="text/javascript" src="templates/l2/js/init.html"></script>
<script language="javascript" type="text/javascript" src="templates/l2/js/dtrotator.html"></script>
<script type="text/javascript">
		$(document).ready(function() {
			VerticalDoWidthElevator();
			MoreLessElevator();
			}
		);
</script>
<link rel="shortcut icon" href="templates/l2/images/favicon.png"/>
<link rel="stylesheet" type="text/css" href="templates/l2/css/aionic_css.css" />
<style type="text/css">
</style>
</head>
<script type="text/javascript" src="engine/ajax/menu.js"></script>
<script type="text/javascript" src="engine/ajax/dle_ajax.js"></script>
<div id="loading-layer" style="display:none;font-family: Verdana;font-size: 11px;width:200px;height:50px;background:#FFF;padding:10px;text-align:center;border:1px solid #000">
<div style="font-weight:bold" id="loading-layer-text">Loading: Please Wait...</div><br />
<img src="engine/ajax/loading.gif"  border="0" alt="" /></div>
<div id="busy_layer" style="visibility: hidden; display: block; position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; background-color: gray; opacity: 0.1; -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=10)'; filter:progid:DXImageTransform.Microsoft.Alpha(opacity=10); "></div>
<script type="text/javascript" src="engine/ajax/js_edit.js"></script>
<div id="container-wrapper" align="center">

	<div id="container" align="left">
		<div id="header">

			<div id="logo"><h1><a href="index.php" title="L2 World - Where you always are welcome"><span>L2 World - Where you always are welcome</span></a></h1></div>

		</div>
<div id="VerticalStage2DownDockicon2" class="transitionVerticalStage3"></div>
<div id="VerticalStage2DownDockicon3" class="transitionVerticalStage3"></div>
		<div id="menu">
					<div class="module">
		<div>
			<div>
				<div>
					<ul id="mainlevel-nav"><li>
<?php include "templates/l2/bars/menu.php" ?>
</ul>					</div>
			</div>
		</div>
	</div>
				</div>
		<div class="cornice-top">
		</div>
		<div class="colmask threecol">
			<div class="colmid">
				<div class="colleft">
					<div class="col1">
						<!-- Column 1 start -->
<!-- Column 1 start -->
				<div class="green_module">
							<div>
								<div>
									<div>
												<table cellpadding="0" cellspacing="0" class="moduletable">
			<tr>
		<td>
<div id='dle-info'></div>
<div id='dle-content'><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
<center>
<h2>Top 10 Active Players</h2><br>
<?php 

function connect() 
{ 
include "config/stats.php";
}

$sexes = array('Male', 'Famale'); 
$online = array('0' => "<font color=#FF0000><b>OFFLINE</b></font>", '1' => "<font color=#035922><b>ONLINE</b></font>");
$klan = array('0' => "No Clan"); 

$FORM = "" ; 
$query_chars = "select char_name,level,sex,classid,onlinetime from characters WHERE access_level=0 AND onlinetime >= 1 order by onlinetime desc limit 10;"; 
connect(); 
$link = mysql_query($query_chars); 
$i=1; 
$r=255; 
while ( $row=mysql_fetch_row($link) ) 
{ 
   $timer2=$row[4]/1000;
   $datetime2  = gmstrftime("%d.%m.%Y v %H:%M:%S", $timer2);
   $query = "select classname from char_templates where classid=$row[3]"; 
   $link2 = mysql_query($query); 
   $class = mysql_fetch_row($link2); 

   $FORM .= "<table><tr> 
   <td align=center><font color=#808080><b>  $i.</b></span></td>
   <td align=center><font color=#AE5C08>  $row[0]</td>
   <td align=center><font color=#808080><b>  Sex:</b></td>
   <td align=center><font color=#AE5C08>  ".$sexes[$row[2]]."</font></td>
   <td align=center><font color=#808080><b>  Class:</b></td>
   <td align=center><font color=#AE5C08>  ".$class[0]."</font></td><br>
   </tr></table>"; 
   $i++; 
   $r -= 0; 
}  

mysql_close(); 

echo $FORM; 

?>
<table>
<br>
<img src="templates/l2/images/line.png"><br>
</center>
</div>
</div></div></div></div>
					<div class="clearing"></div>
					<div class="post-rating"><div class="rating" style="float:left;">
	<ul class="unit-rating">
	<li class="current-rating" style="width:51px;">51</li>
	</ul>
</div></div>
<br>
<br>
		</div>
</table>
</div>
</td>
	</tr>
	</table>
											</div>
								</div>
							</div>
						</div>
						<!-- Column 1 end -->
					</div>					
					<div class="col2">
						<!-- Column 2 start -->
								<div class="module" id="module">
		<div>
			<div>
				<div>
					<h3>Statistics</h3>
<?php include "templates/l2/bars/statistic.php" ?>
</div>
			</div>
		</div>
	</div>
			<div class="module" id="module">
		<div>
			<div>
				<div>
					<h3>Server Status</h3>
                           <tr>
<td colspan="3">
<?php include "templates/l2/bars/status.php" ?>
</td>
                           </tr>

</p>
				</div>
			</div>
		</div>
			</div>
					</div>
					<div class="col3">
						<!-- Column 3 start -->
								<div class="module">
		<div>
			<div>
				<div align="left">
					<h3>Server Statistic</h3>
<?php include "templates/l2/bars/server_statistic.php" ?>
				</div>
			</div>
		</div>
	</div>					
			<div class="module">
		<div>
			<div>
				<div>
					<h3>Vote For Us</h3>
<?php include "templates/l2/bars/vote.php" ?>
					</div>
			</div>
		</div>
	</div>
								<!-- Column 3 end -->
					 </div>
				</div>
			</div>
		</div>
		<div class="cornice-bottom">
		</center>
<br><br><br>
		<div id="footer" align="center"><br/>
<script  type="text/javascript">
<br>
<img src="templates/l2/images/copyright.png">
		</div>
	</div>
</div>
</body>
</html>

 

 

Link to comment
Share on other sites

  • 0
This is not a php error

 

if it was php error it would look like this

 

Parse error: syntax error, unexpected T_STRING in C:\AppServ\www\xampp\test\redrosid\index.php  on line 112

Link to comment
Share on other sites

  • 0

yes but how i told u, if i fix error php i cannot connect to site....   and i use wampserver not xampp :P

 

if i leave the site with error i can view the site but phpshowme error  "cannot find access_level column"  cause my colum in DB is "acceslevel" so i do these changes and i got error how u sw on printscreen....   cannot connect.... do you know why?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • 2 Factor Authentication Code for 100% secure login. Account provided with full information (email, password, dob, gender, etc).
    • ready server for sale, also available for testing with ready and beautiful npc zone pvp with custom 2 epic core orfen lvl2 with all maps ready all quests work at 100% ready comm  board with buffer teleport gm shop service anyone interested send me a pm many more that I forget  Exp/Sp : x30 (Premium: x40)    Adena : x7 (Premium: x10)   Drop : x7 (Premium: 10)   Spoil : x7 (Premium: 10)   Seal Stones : x7 (Premium: 10)   Raid Boss EXP/SP : x10   Raid Boss Drop : x3 (Premium: x5)   Epic Boss Drop : x1 Enchants   Safe Enchant : +3   Max Enchant : +16   Normal Scroll of Enchant Chance : 55%   Blessed Scroll of Enchant Chance : 60% Game Features   GMShop (Max. B-Grade)   Mana Potions (1000 MP, 10 sec Cooldown)   NPC Buffer (Include all buffs, 2h duration)   Auto-learn skills (Except Divine Inspiration)   Global Gatekeeper   Skill Escape: 15 seconds or /unstuck   1st Class Transfer (Free)   2nd Class Transfer (Free)   3rd Class Transfer (700 halisha mark)   Subclass (Items required from Cabrio / Hallate / Kernon / Golkonda + Top B Weapon + 984 Cry B)   Subclass 5 Subclasses + Main (Previous subclasses to level 75 to add new one)   Noblesse (Full Retail Quest)   Buff Slots: 24 (28 with Divine Inspiration LVL 4)   Skill Sweeper Festival added (Scavenger level 36)   Skill Block Buff added   Maximum delevel to keep Skills: 10 Levels   Shift + Click to see Droplist   Global Shout & Trade Chat   Retail Geodata and Pathnodes   Seven Signs Retail   Merchant and Blacksmith of Mammon at towns   Dimensional Rift (Min. 3 people in party to enter - Instance)   Tyrannosaurus drop Top LS with fixed 50% chance   Fast Augmentation System (Using Life Stones from Inventory)   Chance of getting skills (Normal 1%, Mid 3%, High 5%, Top 10%)   Wedding System with 30 seconds teleport to husband/wife Olympiad & Siege   Olympiad circle 14 days. (Maximum Enchant +6)   Olympiads time 18:00 - 00:00 (GMT +3)   Non-class 5 minimum participants to begin   Class based disabled   Siege every week.   To gain the reward you need to keep the Castle 2 times. Clans, Alliances & Limits   Max Clients/PC: 2   Max Clan Members: 36   Alliances allowed (Max 1 Clans)   24H Clan Penalties   Alliance penalty reset at daily restart (3-5 AM)   To bid for a Clan Hall required Clan Level 6 Quests x3   Alliance with the Ketra Orcs   Alliance with the Varka Silenos   War with Ketra Orcs   War with the Varka Silenos   The Finest Food   A Powerful Primeval Creature   Legacy of Insolence   Exploration of Giants Cave Part 1   Exploration of Giants Cave Part 2   Seekers of the Holy Grail   Guardians of the Holy Grail   Hunt of the Golden Ram Mercenary Force   The Zero Hour   Delicious Top Choice Meat   Heart in Search of Power   Rise and Fall of the Elroki Tribe   Yoke of the Past     Renegade Boss (Monday to Friday 20:00)   All Raid Boss 18+1 hours random respawn   Core (Jewel +1 STR +1 DEX) Monday, Wednesday and Friday 20:00 - 21:00 (Maximum level allowed to enter Cruma Tower: 80)   Orfen (Jewel +1 INT +1 WIT) Monday to Friday, 20:00 - 21:00 (Maximum level allowed to enter Sea of Spores: 80)   Ant Queen Monday and Friday 21:00 - 22:00 (Maximum level allowed to enter Ant Nest: 80)   Zaken Monday,Wednesday,Friday 22:00 - 23:00 (Maximum level allowed to enter Devil's Isle: 80)   Frintezza Tuesday, Thursday and Sunday 22:00 – 23:00 (Need CC of 4 party and 7 people in each party min to join the lair, max is 8 party of 9 people each)   Baium (lvl80) Saturday 22:00 – 23:00   Antharas Every 2 Saturdays 22:00 - 23:00 Every 2 Sundays (alternating with Valakas) 22:00 – 23:00   Valakas Every 2 Saturdays 22:00 - 23:00 Every 2 Sundays (alternating with Antharas) 22:00 – 23:00   Subclass Raids (Cabrio, Kernon, Hallate, Golkonda) 18hours + 1 random   Noblesse Raid (Barakiel) 6 hours + 15min random   Varka’s Hero Shadith 8 hours + 30 mins random (4th lvl of alliance with Ketra)   Ketra’s Hero Hekaton 8 hours + 30 mins random (4th lvl of alliance with Varka)   Varka’s Commander Mos 8 hours + 30 mins random (5th lvl of alliance with Ketra)   Ketra’s Commander Tayr 8 hours + 30 mins random (5th lvl of alliance with Varka)
    • Have a great day! Unfortunately, we can not give you the codes at the moment, but they will be distributed as soon as trial is back online, thanks for understanding! Other users also can reply there for codes, we will send them out some time after.
    • Ok mates i would like to play a pridestyle server (interluide, gracie w/ever) Is there any such server online and worth playing?
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock