Hey, jeg er ved at lave den her hjemmeside.
men den vil ikke vise æøå (jeg kende godt de der koder for dem men da jeg skal trække noget ud af en database skal jeg have den til at forsåt åøæ )
jeg ved det er muligt med noget chat set eller onget da jeg har gjort det før, men nu gider den bare ikke
mit script er her;
<html>
<head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="ajax.js"></script>
<script type="text/javascript" src="onload.js"></script>
<title>Fraggit</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body style=" background: url(bg.jpg);" onload="onload_function();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>
<table id="Table_01" width="1001" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="17">
<img src="images/index_01.png" width="50" height="278" alt=""></td>
<td rowspan="17">
<img src="images/index_02.png" width="28" height="278" alt=""></td>
<td colspan="3" rowspan="6" width="204" height="50" style=" background: url(images/sideanvisning.png);" id="place_show"></td>
<td rowspan="6">
<img src="images/index_04.png" width="32" height="50" alt=""></td>
<td colspan="8">
<img src="images/index_05.png" width="608" height="1" alt=""></td>
<td colspan="2" rowspan="2">
<img src="images/index_06.png" width="28" height="25" alt=""></td>
<td rowspan="3">
<img src="images/index_07.png" width="50" height="26" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="1" alt=""></td>
</tr>
<tr>
<td colspan="8">
<img src="images/index_08.png" width="608" height="24" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="24" alt=""></td>
</tr>
<tr>
<td colspan="6" rowspan="2">
<img src="images/index_09.png" width="351" height="14" alt=""></td>
<td rowspan="9">
<img src="images/index_10.png" width="71" height="157" alt=""></td>
<td colspan="2" rowspan="10" width="199" height="161" style=" background: url(images/adminpanel_place.png);"></td>
<td rowspan="15">
<img src="images/index_12.png" width="15" height="253" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="1" alt=""></td>
</tr>
<tr>
<td rowspan="14">
<img src="images/index_13.png" width="50" height="252" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="13" alt=""></td>
</tr>
<tr>
<td colspan="4">
<img src="images/index_14.png" width="163" height="1" alt=""></td>
<td colspan="2">
<img src="images/fraggit_banner_link.png" width="188" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="1" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="images/index_16.png" width="43" height="10" alt=""></td>
<td colspan="2" rowspan="11">
<img src="images/index_17.png" width="121" height="196" alt=""></td>
<td rowspan="4">
<img src="images/fraggit_banner_link-19.png" width="187" height="57" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="10" alt=""></td>
</tr>
<tr>
<td colspan="6">
<img src="images/index_19.png" width="277" height="11" alt=""></td>
<td rowspan="4">
<img src="images/index_20.png" width="2" height="67" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="11" alt=""></td>
</tr>
<tr>
<td colspan="2" rowspan="9">
<img src="images/index_21.png" width="16" height="175" alt=""></td>
<td colspan="4">
<img src="images/index_22.png" width="261" height="3" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="3" alt=""></td>
</tr>
<tr>
<td colspan="3" rowspan="5" width="234" style=" background: url(images/login_box.png);">
</td>
<td rowspan="2">
<img src="images/index_24.png" width="27" height="53" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="33" alt=""></td>
</tr>
<tr>
<td rowspan="6">
<img src="images/index_25.png" width="187" height="110" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="20" alt=""></td>
</tr>
<tr>
<td colspan="2" rowspan="3">
<img src="images/login_fane.png" width="29" height="77" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="65" alt=""></td>
</tr>
<tr>
<td rowspan="3">
<img src="images/index_27.png" width="71" height="19" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="4" alt=""></td>
</tr>
<tr>
<td rowspan="4">
<img src="images/index_28.png" width="186" height="50" alt=""></td>
<td rowspan="5">
<img src="images/index_29.png" width="13" height="92" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="8" alt=""></td>
</tr>
<tr>
<td colspan="4" rowspan="3">
<img src="images/index_30.png" width="261" height="42" alt=""></td>
<td rowspan="3">
<img src="images/index_31.png" width="2" height="42" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="7" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/index_32.png" width="71" height="35" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="6" alt=""></td>
</tr>
<tr>
<td>
<img src="images/index_33.png" width="187" height="29" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="29" alt=""></td>
</tr>
<tr>
<td colspan="12" width="844" height="42" style=" background: url(images/menu.png);" align="center">
<?php
include('menu.php');
?>
</td>
<td>
<img src="images/spacer.gif" width="1" height="42" alt=""></td>
</tr>
<tr>
<td colspan="3" width="81" height="687" style=" background: url(images/midt_left_border.png);">
</td>
<td colspan="11" height="" width="841" style="background: #222222;" valign="top">
<div id="content" width="841">
</div>
</td>
<td colspan="3" width="78" height="687" style=" background: url(images/midt_right_border.png);">
</td>
<td>
<img src="images/spacer.gif" width="1" height="687" alt=""></td>
</tr>
<tr>
<td>
<img src="images/index_38.png" width="50" height="35" alt=""></td>
<td>
<img src="images/index_39.png" width="28" height="35" alt=""></td>
<td>
<img src="images/index_40.png" width="3" height="35" alt=""></td>
<td colspan="11">
<img src="images/bund.png" width="841" height="35" alt=""></td>
<td colspan="3">
<img src="images/index_42.png" width="78" height="35" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="35" alt=""></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="50" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="28" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="3" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="13" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="188" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="32" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="14" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="27" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="2" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="120" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="187" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="71" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="186" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="13" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="15" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="50" height="1" alt=""></td>
<td></td>
</tr>
</table>
</center>
</body>
</html>
(sideskift er lavet i ajax)
du kan find det online på www.fraggit.dk/ny
her er koden til forsiden:
<html>
<head>
<title>Untitled-1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- Save for Web Slices (Untitled-1) -->
<table id="Table_01" width="808" height="662" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="5">
<img src="images/forside_01.png" width="13" height="662" alt=""></td>
<td colspan="4">
<img src="images/forside_02.png" width="785" height="12" alt=""></td>
<td rowspan="5">
<img src="images/forside_03.png" width="10" height="662" alt=""></td>
</tr>
<tr>
<td width="405" height="314" style=" background: url(images/nyhedsbox.png);"><p>æ=æ</p>
<p>ø=ø</p>
<p>å=å</p></td>
<td rowspan="3">
<img src="images/forside_05.png" width="34" height="640" alt=""></td>
<td rowspan="3">
<img src="images/forside_06.png" width="12" height="640" alt=""></td>
<td rowspan="3" width="334" height="640" style=" background: url(images/right_box.png);" valign="top">
<b id="lille_overskrift">FFA Ranks:</b>
<iframe scrolling="no" frameborder="0" src="rank.php" width="320" height="300" align="left" id="rank_iframe"></iframe>
<br/>
<b id="lille_overskrift">Nyeste brugere:</b><br/>
<table id="new-users" valign="top"><tr><td>
<?php
//connect til bruger databasen og træk brugere ud!
include('connect.php');
$result = mysql_query("SELECT * FROM apply WHERE aktiv>'4' ORDER BY id DESC LIMIT 3") or die(mysql_error());
while($row = mysql_fetch_array($result)) {
$rank = $row['aktiv'];
if($row[billede] == ""){
$billede = "nopic.png";
}else{
$billede = $row[billede];
}
?><a id="memberlist_img" href="#/side/profile&id=<?php echo $row[id];?>" onClick="loadpage('profile&id=<?php echo $row[id];?>', 'Profile - <?php echo $row['brugernavn'];?>');"> <img class="profilbillede" id="memberlist_img" src="<?php echo $billede;?>" height="82" width="66" alt=""> </a>
<?php ?></td><td>
<a id="username" href="#/side/profile&id=<?php echo $row[id];?>" onClick="loadpage('profile&id=<?php echo $row[id];?>', 'Profile - <?php echo $row['brugernavn'];?> ');"><?php echo $row['brugernavn'];?></a><?php
echo "<p id='new_user_text'>";
if($rank == "4"){
?>
<img src="member.png" height="50" width="50" alt="">
<?php
}elseif($rank == "5"){
?>
<img src="admin.png" height="50" width="50" alt="">
<?php
}elseif($rank == "6"){
?>
<img src="vip.png" height="50" width="50" alt="">
<?php
}elseif($rank == "7"){
?>
<img src="admin.png" height="50" width="50" alt="">
<?php
}else{
echo "NOOOOBB";
}
echo "</p>";
?> </td></tr><tr><td><?php
}
?>
</td></tr></table>
</td>
</tr>
<tr>
<td>
<img src="images/forside_08.png" width="405" height="29" alt=""></td>
</tr>
<tr>
<td width="405" height="297" style=" background: url(images/serverbox.png);">
</td>
</tr>
<tr>
<td colspan="4">
<img src="images/forside_10.png" width="785" height="10" alt=""></td>
</tr>
</table>
<!-- End Save for Web Slices -->
</body>
</html>
der er skrævet æ ø å med teng først og æøå uden tegn efter. (siden virker ikke i IE)
et eksemple på det virker:
http://fraggit.dk/profil.php?id=2den samme profil hvor det ikke virker:
http://fraggit.dk/ny/#/side/profile&id=2det er taget fra samme database tabel.
koden til siden hvor det virker:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<?php
$id = $_GET[id];
?>
<head>
<title>Profilside</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- Save for Web Slices (Untitled-1) -->
<table id="Table_01" width="631" height="587" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="6" id="profilestatus"><center>
<?php
include('connect.php');
$result = mysql_query("SELECT * FROM apply WHERE id='$id' ") or die(mysql_error());
while($row = mysql_fetch_array($result)) {
echo $row['status'];
}?>
</center></td>
<td>
<img src="images_profile/spacer.gif" width="1" height="40" alt=""></td>
</tr>
<tr>
<td colspan="6">
<img src="images_profile/profilside_02.png" width="630" height="27" alt=""></td>
<td>
<img src="images_profile/spacer.gif" width="1" height="27" alt=""></td>
</tr>
<tr>
<td colspan="3" rowspan="4" width="182" height="191" valign="top">
<?php
include('connect.php');
$result = mysql_query("SELECT * FROM apply WHERE id='$id' ") or die(mysql_error());
while($row = mysql_fetch_array($result)) {
if($row[billede] == ""){
$billede = "noobbillede.png";
}else{
$billede = $row[billede];
}?>
<div class="gallerycontainer">
<a class="thumbnail" href="#thumb"><img class="profilbillede" src="<?php echo $billede;?>" height="165" width="133" alt=""><span>
<img src="<?php echo $billede;?>" /><br /></span></a>
</div>
<?php }?>
<td colspan="3">
<img src="images_profile/profilside_04.png" width="448" height="8" alt=""></td>
<td>
<img src="images_profile/spacer.gif" width="1" height="8" alt=""></td>
</tr>
<tr>
<td colspan="2" rowspan="2">
<img src="images_profile/profilside_05.png" width="17" height="167" alt=""></td>
<td id="profileinfobox">
<?php
if($id == $_SESSION['userid']){
?>
<p><a class="inde_dims" href="profil.php?id=<?php echo $_SESSION[userid]; ?>&rediger=true"><b style=" font-family: ariel;">Rediger Profil</b></a>
<a class="inde_dims" href="process.php"><b style=" font-family: ariel;">Skift Profilbillede</b></a></p>
<?php
}else{}
include('connect.php');
$result = mysql_query("SELECT * FROM apply WHERE id='$id' ") or die(mysql_error());
while($row = mysql_fetch_array($result)) {
?>
<table class="table_info"><tr><td>
<b>Brugernavn:</b>
</td><td>
<?php echo $row['brugernavn']; ?>
</td></tr><tr><td>
<b>Navn:</b>
</td><td>
<?php echo $row['navn']; ?>
</td></tr><tr><td>
<b>Alder:</b>
</td><td>
<?php echo $row['alder']; ?>
</td></tr><tr><td>
<b>By:</b>
</td><td>
<?php echo $row['city_by']; ?>
</td></tr><tr><td>
<b>Steamnavn:</b>
</td><td>
<?php echo $row['steamnavn']; ?>
</td></tr></table>
<?php
}
?>
</td>
<td>
<img src="images_profile/spacer.gif" width="1" height="154" alt=""></td>
</tr>
<tr>
<td>
<img src="images_profile/profilside_07.png" width="431" height="13" alt=""></td>
<td>
<img src="images_profile/spacer.gif" width="1" height="13" alt=""></td>
</tr>
<tr>
<td colspan="3" rowspan="2">
<img src="images_profile/profilside_08.png" width="448" height="47" alt=""></td>
<td>
<img src="images_profile/spacer.gif" width="1" height="16" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images_profile/profilside_09.png" width="169" height="31" alt=""></td>
<td rowspan="7">
<img src="images_profile/profilside_10.png" width="13" height="328" alt=""></td>
<td>
<img src="images_profile/spacer.gif" width="1" height="31" alt=""></td>
</tr>
<tr>
<td rowspan="3">
<img src="images_profile/profilside_11.png" width="5" height="139" alt=""></td>
<td id="profilefightbox">fightd</td>
<td rowspan="2">
<img src="images_profile/profilside_13.png" width="10" height="125" alt="+"></td>
<td colspan="2" rowspan="2" id="profileprofilebox" valign="top"><p id="profiltext">
<?php
include('connect.php');
$result = mysql_query("SELECT * FROM apply WHERE id='$id' ") or die(mysql_error());
while($row = mysql_fetch_array($result)) {
echo $row['profitxt'];
}
?></p></td>
<td>
<img src="images_profile/spacer.gif" width="1" height="121" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images_profile/profilside_15.png" width="164" height="18" alt=""></td>
<td>
<img src="images_profile/spacer.gif" width="1" height="4" alt=""></td>
</tr>
<tr>
<td colspan="3" rowspan="2">
<img src="images_profile/profilside_16.png" width="448" height="42" alt=""></td>
<td>
<img src="images_profile/spacer.gif" width="1" height="14" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images_profile/profilside_17.png" width="169" height="28" alt=""></td>
<td>
<img src="images_profile/spacer.gif" width="1" height="28" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images_profile/profilside_18.png" width="5" height="130" alt=""></td>
<td id="profileforumbox">forum</td>
<td rowspan="2">
<img src="images_profile/profilside_20.png" width="10" height="130" alt=""></td>
<td colspan="2" id="profilepcspecs" valign="top">
<p id="profiltext"> <?php
include('connect.php');
$result = mysql_query("SELECT * FROM apply WHERE id='$id' ") or die(mysql_error());
while($row = mysql_fetch_array($result)) {
echo $row['pc'];
}
?></p></td>
<td>
<img src="images_profile/spacer.gif" width="1" height="124" alt=""></td>
</tr>
<tr>
<td>
<img src="images_profile/profilside_22.png" width="164" height="6" alt=""></td>
<td colspan="2">
<img src="images_profile/profilside_23.png" width="438" height="6" alt=""></td>
<td>
<img src="images_profile/spacer.gif" width="1" height="6" alt=""></td>
</tr>
<tr>
<td>
<img src="images_profile/spacer.gif" width="5" height="1" alt=""></td>
<td>
<img src="images_profile/spacer.gif" width="164" height="1" alt=""></td>
<td>
<img src="images_profile/spacer.gif" width="13" height="1" alt=""></td>
<td>
<img src="images_profile/spacer.gif" width="10" height="1" alt=""></td>
<td>
<img src="images_profile/spacer.gif" width="7" height="1" alt=""></td>
<td>
<img src="images_profile/spacer.gif" width="431" height="1" alt=""></td>
<td></td>
</tr>
</table>
<!-- End Save for Web Slices -->
</body>
</html>
håber i kan hjælpe mig