Home > Archive > PHP Language > May 2004 > need urgent php help lz help me
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
need urgent php help lz help me
|
|
| richarro123 2004-05-22, 11:36 am |
| hey all i ned urgent php help with this::
--------
<?
include("ipban.php");
include("plugins.php");
?>
<?
session_start();
include("data.php");
include("funktioner.php");
mysql_connect(server,anvandare, losen);
mysql_select_db(databas);
if (_GET['error'] ==
'suspended') {
_note = "<br><hr><font
color='red'><b>Sorry your account has been
suspended!<br><br>Since this account is just
suspended it will be unsuspended
shortly. But if you want to email us do so here <a
href='mailto:admin@thugwars.net?subject=Why was i
suspended?'>admin@thugwars.net</a>.<br><hr><br></b></font>";
_}
if (_GET['error'] == 'banned')
{
_note = "<br><hr><font
color='red'><b>Sorry your account has been
banned!<br><br>Since this account is banned, not
suspended, you probably
don't have a very good chance of it ever being unbanned, since
bans are usually permanent. But if you think this is an error, which
you probably will, you can email us here
<a href='mailto:admin@thugwars.net?subject=Why was i
banned?'>admin@thugwars.net</a>.<br><hr><br></b></font>";
_}
// Errors
if (_GET['error'] == '404') {
_note = "<br><hr><font
color='red'><b>404: Sorry
_GET[thepage] doesnt exist. Are you just typing stuff
in the address
bar?<br><hr><br></b></font>";
_}
if (_GET['error'] == '403') {
_note = "<br><hr><font
color='red'><b>403: Sorry you can not access
_GET[thepage] on this
server.<br><hr><br></b></font>";
_}
if (_GET['note'] ==
'accreated') {
_note = "<br><hr><font
color='red'><b>403: Sorry you can not access
_GET[thepage] on this
server.<br><hr><br></b></font>";
_}
if (_GET['note'] ==
'accreated') {
_note = "<br><hr><font
color='red'><b>Your account has been created!
Thank you for joining .:Thugwars:.! Have
fun!!<br><hr><br></b></font>";
_}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<HTML>
<HEAD>
<TITLE><?php require( 'title.php'
)?></TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=iso-8859-1">
<link href="style.css" rel="stylesheet"
type="text/css">
</HEAD>
<BODY BGCOLOR="#000000">
<TABLE WIDTH="1000" BORDER="0"
CELLPADDING="0" CELLSPACING="0"
align="center">
_<!--DWLayoutTable-->
_<TR>
_ _<TD COLSPAN="14">
_ _<img src="images/index_01.gif"
ALT=""></TD>
_</TR>
_<TR>
_ _<TD COLSPAN="3">
_ _<img src="images/index_02.gif"
ALT=""></TD>
_ _<TD COLSPAN="11">
_ _<img src="images/index_03.gif"
ALT=""></TD>
_</TR>
<?php
results= mysql_query("SELECT * FROM members Order by ID
asc");
id = "ID";
username = "username";
money = "money";
thugs = "thugs";
bank = "bank";
echo mysql_error();
if (mysql_Numrows(results)>0) _ _ _ _ _ _ _
_ _ _ _ _ _ _//if there are records in the fields
{
_numrows=mysql_NumRows(results); _ _ _ _ _ _ _ _
_ _ _ //count them
_x=0;
_while (x<numrows){ _ //loop through the
records
_x++;
_}
}
?>
<? newest_user =
mysql_result(mysql_query('SELECT username FROM members
ORDER BY id DESC LIMIT 1'), 0);
query = mysql_query("SELECT * from members WHERE
username = 'newest_user'");
while (newu = mysql_fetch_array(query)) {
?>
_<TR>
_ _<TD height="46" COLSPAN="3"
class="background0" align="center"><font
color="#FFFFFF">Round 3<br>
_ _Newest Player: <a
href="profile.php?id=<?=newu['id']?>"><?=htmlentities(newest_user)?></a><br>Total
Players: <?=numrows?></font></TD>
<?}?>
_ _<TD COLSPAN="11" class="background1"
align="center"><font color="#FFFFFF"
size="4"><em>
_ _ _
.:Thugwars:. </font><br><font
color="#FFFFFF" size="2">Anyone That Falls
Behind, Is Left
Behind! </em></TD>
_</TR>
_<TR>
_ _<TD height="26" COLSPAN="14"
class="background2"><!--DWLayoutEmptyCell-->
</TD>
_</TR>
_<TR>
_ _<TD height="3" COLSPAN="14">
_ _<IMG SRC="images/index_07.gif" ALT=""
></TD>
_</TR>
_<TR>
_ <font color="#000000">
_ _<TD width="144" height="22"
class="background3" align="center"><a
href="index.php">
_ _<font
color="#000000">Home</font></a></TD>
_ _<TD width="1"> <font
color="#000000"> <IMG
SRC="images/index_09.gif"
ALT=""></font></TD>
_ _<TD COLSPAN="2" class="background4"
align="center"><a target="_blank"
href="http://forum.thugwars.net/index.php">
_ _<font
color="#000000">Forum</font></a></TD>
_ _<TD width="1"> <font
color="#000000">
_ _<IMG SRC="images/index_11.gif" ALT=""
></font></TD>
_ _<TD width="145" class="background5"
align="center"><a href="signup.php">
_ _<font color="#000000">Sign
Up</font></a></TD>
_ _<TD width="1"> <font
color="#000000">
_ _<IMG SRC="images/index_13.gif" ALT=""
></font></TD>
_ _<TD width="145" class="background6"
align="center"><a
href="mailto:admin@thugwars.net">
_ _<font color="#000000">Contact
Us</font></a></TD>
_ _<TD width="1"> <font
color="#000000">
_ _<IMG SRC="images/index_15.gif" ALT=""
></font></TD>
_ _<TD width="145" class="background7"
align="center"><a href="hof.php">
_ _<font color="#000000">Winners
list</font></a></TD>
_ _<TD width="1"> <font
color="#000000">
_ _<IMG SRC="images/index_17.gif" ALT=""
></font></TD>
_ _<TD width="145" class="background8"
align="center"><a href="privacy.php">
_ _<font color="#000000">Privacy
Policy</font></a></TD>
_ _<TD width="1"> <font
color="#000000">
_ _<IMG SRC="images/index_19.gif" ALT=""
></font></TD>
_ _<TD width="125" class="background9"
align="center"><a href="spam.php">
_ _<font color="#000000">Spam
Policy</font></a></TD>
_ _</font>
_</TR>
_<TR>
_ _<TD height="1" COLSPAN="14">
_ _<IMG SRC="images/index_21.gif" ALT=""
></TD>
_</TR>
_<TR>
_ _<TD height="11" COLSPAN="14">
_ _<IMG SRC="images/index_22.gif" ALT=""
></TD>
_</TR>
_<?php require( 'menu3.php' )?>
_ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _<td
height="65"> </td>
_ _ _ _ _ _ _</tr>
_ _ _ _ _ _</table></td>
_ _ _ _ _<td height="202"></td>
_ _ _ _</tr>
_ _ _ _ _ _</table></TD>
_ _ _ _ _<TD width="1" rowspan="8"
valign="top">
_ _ _ _ _<img src="images/index_linie.gif"
ALT=""></TD>
_ _ _ _ _<TD width="558"
height="1"></TD>
_ _ _ _ _<TD width="1"></TD>
_ _ _ _ _<TD width="221" valign="top">
_ _ _ _ _<IMG SRC="images/index_25.gif" ALT=""
></TD>
_ _ _ _</tr>
_ _ _ _<tr>
_ _ _ _ _<TD rowspan="5"
valign="top"><table width="100%"
border="0" cellpadding="0"
cellspacing="0">
_ _ _ _ _ _ _<!--DWLayoutTable-->
_ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _<td width="17"
height="13"></td>
_ _ _ _ _ _ _ _<td width="521"></td>
_ _ _ _ _ _ _ _<td width="16"></td>
_ _ _ _ _ _ _</tr>
_ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _<td height="364"></td>
_ _ _ _ _ _ _ _<td valign="top"
class="news-content">
<?
if (pro['bansus'] == 'banned') {
echo "<br><center><b>Sorry this user has
been banned!</center></b>";
there = "yes";
} elseif (pro['bansus'] ==
'suspended') {
echo "<br><center><b>Sorry this user has
been suspended!</center></b>";
there = "yes";
} elseif (pro['bansus'] == 'no')
{ ?>
<table border="0" cellpadding="0"
cellspacing="0" style="border-collapse: collapse"
width="100%" id="AutoNumber2"
bordercolorlight="#5D6567"
bordercolordark="#000000">
_<tr>
_ <td width="50%" align="left"
style="padding:5px; padding-left:10px; border-top:1px
solid #5D6567;border-left:1px solid #5D6567;"
bgcolor="#000000">
_ _ _<b><font
size="2"></font></b>
_ _ _ </td>
<?
if (pro['league'] == 'comp') {
league = "COMPETITIVE";
} elseif (pro['league'] == 'rp')
{
league = "AEON";
}
?>
_ _<td width="50%" align="right"
style="border-top:1px solid #5D6567; border-right:1px
solid #5D6567; padding-right:10px;"
bgcolor="#000000">
_ _ <b><font size="2"
color="#FF0000"><CENTER><?=league?>
LEAGUE</CENTER></font></b>
_ _</td>
_</tr>
</table>
<table border="1" cellpadding="0"
cellspacing="0" style="border-collapse: collapse"
width="100%" id="AutoNumber1"
bordercolorlight="#5D6567"
bordercolordark="#000000">
_<tr>
_ _<td width="100%" bgcolor="#BABABA">
_ _<table border="0" cellpadding="5"
cellspacing="0" style="border-collapse: collapse"
id="AutoNumber19">
_ _ _<tr>
_ _ _<td width="25"></td>
_ _ _<td align="left" nowrap>
_ _ _<b><a
href="attack.php?name=<?=pro["username"]?>">
<font size="2">ATTACK THIS
PLAYER!</font></A>
</td>
<td width="25">
</td>
_ _ _ _<td align="right" width="100%">
_ _ _ _ _ _ _ _<b><a
href="mcenter.php?action=compose&name=<?=pro["username"]?>">
_ _ _ _<font size="2">MESSAGE THIS
PLAYER!</font></a></b>
_ _ _ _ </td>
_ _ _</tr>
_ _</table>
_ _</td>
_</tr>
_<tr>
_ _<td width="100%">
_ _<table border="0" cellpadding="0"
cellspacing="8" style="border-collapse: collapse"
width="100%" id="AutoNumber3"
background="images/marbletile.gif">
_ _ _<tr>
_ _ _ _<td width="50%" align="left"
valign="top" height="0">
_ _ _ _<table border="1" cellpadding="2"
cellspacing="0" style="border-collapse: collapse"
width="100%" id="AutoNumber4"
bordercolorlight="#000000" bordercolordark="#5D6567"
bgcolor="#bababa">
_ _ _ _ _<tr>
_ _ _ _ _ _<td width="100%" colspan="2"
bgcolor="#00000">
_ _ _ _ _ _<p align="center"><font
color="#ff0000"><b>PLAYER
INFO</b></font>
_ _ _ _ _</td>
_ _ _ _ _</tr>
_ _ _ _ _<tr>
_ _ _ _ _ _<td width="50%"
bgcolor="#bababa"><font
size="1"><b>SCREEN
NAME</b></font></td>
_ _ _ _ _ _<td width="50%"
bgcolor="#bababa"><font
size="1"><b><a
href="aim:goim?screenname=<?=pro["aim"]?>"><?=pro["aim"]?></a></b></font>
</td>
_ _ _ _ _</tr>
<?
if (pro['ref'] == '0') {
parentid = "";
parentname = "NONE";
} else {
query = mysql_query("SELECT * from members WHERE id =
'".pro['ref']."'");
while (parent = mysql_fetch_array(query))
{
parentid = parent['id'];
parentname = parent['username'];
}
}
?>
_ _ _ _ _<tr>
_ _ _ _ _ _<td width="50%"><b><font
size="1">PARENT</font></b></td>
_ _ _ _ _ _<td width="50%"><b>
_ _ _ _ _ _ _ _<? if (parentid == '')
{?>
_ _ _ _ _ _ _ _ORPHAN
_ _ _ _ _ _ _ _<?} else {?>
_ _ _ _ _ _ _ _<a
href="profile.php?id=<?=parentid?>"><?=strtoupper(parentname)?></a>
_ _ _ _ _ _ _ _<?}?>
_ _ _ _ _ _</b> </td>
_ _ _ _ _</tr>
<?
if (pro['class'] == '1') {
class = "Gangster";
} elseif (pro['class'] == '2')
{
class = "Godfather";
} elseif (pro['class'] == '3')
{
class = "Pimp";
} elseif (pro['class'] == '4')
{
class = "Hoe";
}
?>
_ _ _ _ _<tr>
_ _ _ _ _ _<td width="50%"
bgcolor="#bababa"><b><font
size="1">CLASS</font></b></td>
_ _ _ _ _ _<td width="50%"
bgcolor="#bababa"><b><font
size="1"><?=strtoupper(class)?></font></b> </td>
_ _ _ _ _</tr>
_ _ _ _ _<tr>
_ _ _ _ _ _<td width="50%"><b><font
size="1">THUG
FOLLOWERS</font></b> </td>
_ _ _ _ _ _<td width="50%"><b><font
size="2"><?=pro["thugs"]?></font></b> </td>
_ _ _ _ _</tr>
_ _ _ _ _<tr>
_ _ _ _ _ _<td width="50%"
bgcolor="#bababa"><b><font
size="1">UNDERLINGS</font></b></td>
_ _ _ _ _ _<td width="50%"
bgcolor="#bababa"><b><font
size="1">NOT WORKING
YET</font></b> </td>
_ _ _ _ _</tr>
_ _ _ _</table>
_ _ _ _<table border="1" cellpadding="0"
cellspacing="0" style="border-collapse: collapse"
width="100%" id="AutoNumber6"
bordercolorlight="#000000" bordercolordark="#5D6567"
bgcolor="#bababa">
_ _ _ _ _<tr>
_ _ _ _ _ _<td width="100%">
_ _<table border="0" cellpadding="10"
cellspacing="0" style="border-collapse: collapse"
width="100%" id="AutoNumber20">
_ _ _<tr>
_ _ _ _<td width="100%"
align="center"><p><img border="0"
src="<?=pro["picture"]?>"
width="350"
height="350"></p></td>
_ _ _</tr>
_ _</table>
_ _ _ _ </td>
_ _ _ _ </tr>
_ _ _</table>
_ _ _<table border="0" cellpadding="2"
cellspacing="0" style="border-collapse: collapse"
width="100%" id="AutoNumber14"
bgcolor="#000000">
_ _ _ _ <tr>
_ _ _ _ _ _ <td width="100%">
_ _ _ _ _ _ _ <p align="center"><font
color="#ff0000"><b>GAME
STATUS</b></font>
_ _ _ _ _ _ </td>
_ _ _ _ </tr>
_ _ _</table>
_ _ _<table border="1" cellpadding="2"
cellspacing="0" width="100%"
style="border-collapse: collapse"
id="AutoNumber20" bordercolorlight="#000000"
bordercolordark="#5D6567">
_ _ _ _<tr>
_ _ _ _<td>
_ _ _ _<center>NOT WORKING YET</center>
_ _ _ _</td>
_ _ _ _</tr>
_ _ _</table>
_ _<!-- SECOND COLUMN -->
_ _<td width="50%" valign="top"
height="100%">
_ _ _ _<table border="1" cellpadding="0"
cellspacing="0" style="border-collapse: collapse"
width="100%" id="AutoNumber5"
bordercolorlight="#000000" bordercolordark="#5D6567"
bgcolor="#bababa">
_ _ _ _ _ _<tr>
_ _ _ _ _ _ _<td width="100%" align="left"
valign="top">
_ _ _ _ _ _ _<table border="0" cellpadding="2"
cellspacing="0" style="border-collapse: collapse"
width="100%" id="AutoNumber10">
_ _ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _ _<td width="100%"
bgcolor="#000000">
_ _ _ _ _ _ _ _ _ <p align="center"><font
color="#ff0000"><b>CHARACTER
DESCRIPTION</b></font></td>
_ _ _ _ _ _ _ _</tr>
_ _ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _ _<td
width="100%"><?=pro["message"]?></td>
_ _ _ _ _ _ _ _</tr>
_ _ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _ _<td
width="100%"> </td>
_ _ _ _ _ _ _ _</tr>
_ _ _ _ _ _ _</table>
_ _ _ _ _ _ _</td>
_ _ _ _ _ _</tr>
_ _ _ _ _</table>
_ _ <table border="1" cellpadding="0"
cellspacing="0" style="border-collapse: collapse"
width="100%" id="AutoNumber8" height="100%"
bordercolorlight="#000000" bordercolordark="#5D6567"
bgcolor="#bababa">
_ _ _ _ _<tr>
_ _ _ _ _ _<td width="100%" align="left"
valign="top">
_ _ _ _ _ _<table border="0" cellpadding="2"
cellspacing="0" style="border-collapse: collapse"
width="100%" id="AutoNumber11">
_ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _<td width="100%"
bgcolor="#000000">
_ _ _ _ _ _ _ _<p align="center"><font
color="#ff0000"><b>USER
ITEMS/WEAPONS</b></font></td>
_ _ _ _ _ _ _</tr>
_ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _<td width="100%">
_ _ _ _ _ _ _ _<table border="0" cellpadding="0"
cellspacing="0" style="border-collapse: collapse"
width="100%" id="AutoNumber12">
<script>
function preview(x){
var popurl='item.php?item='+x;
winpops=window.open(popurl,"","width=450,height=250,noscrollbars,");
}
</script>
_ _ _ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _ _ _<td width="100%"
colspan="3"> </td>
_ _ _ _ _ _ _ _</tr><tr><td colspan="3"
align="center" width="100%">
_ _ _ _ _ _ _ _ _ _<b><u>Attack
Items</b></u>
_ _ _ _ _ _ _ _ _ _<br>
_ _ _ _ _ _ _ _ _ _<br>
_ _ _<tr>
_ _ _ _ _ _ _ _ _ _<? if
(pro['attitem1'] >= '1')
{?>
_ _ <td width="33%" align="center"><a
href="java script:preview(1)">
_ _ <img border="0"
src="weaponimages/attitem1.gif" width="60"
height="50"></a>
_
_ <b><?=pro['attitem1']?></b></td>
_ _ <?}?>
_ _ _ _ _ _ _ _ _ _<? if
(pro['attitem2'] >= '1')
{?>
_ _ <td width="33%" align="center"><a
href="java script:preview(2)">
_ _ <img border="0"
src="weaponimages/attitem2.gif" width="60"
height="50"></a>
_
_ <b><?=pro['attitem2']?></b></td>
_ _ <?}?>
_ _ _ _ _ _ _ _ _ _<? if
(pro['attitem3'] >= '1')
{?>
_ _ <td width="33%" align="center"><a
href="java script:preview(3)">
_ _ <img border="0"
src="weaponimages/attitem3.gif" width="70"
height="50"></a>
_
_ <b><?=pro['attitem3']?></b></td>
_ _ <?}?>
_ _ _</tr>
_ _ _<tr>
_ _ _ _ _ _ _ _ _ _<? if
(pro['attitem4'] >= '1')
{?>
_ _ <td width="33%" align="center"><a
href="java script:preview(4)">
_ _ <img border="0"
src="weaponimages/attitem4.gif" width="70"
height="50"></a>
_
_ <b><?=pro['attitem4']?></b></td>
_ _ <?}?>
_ _ _ _ _ _ _ _ _ _<? if
(pro['attitem5'] >= '1')
{?>
_ _ <td width="33%" align="center"><a
href="java script:preview(5)">
_ _ <img border="0"
src="weaponimages/attitem5.gif" width="60"
height="50"></a>
_
_ <b><?=pro['attitem5']?></b></td>
_ _ <?}?>
_ _ _ _ _ _ _ _ _ _<? if
(pro['attitem6'] >= '1')
{?>
_ _ <td width="33%" align="center"><a
href="java script:preview(6)">
_ _ <img border="0"
src="weaponimages/attitem6.gif" width="60"
height="50"></a>
_
_ <b><?=pro['attitem6']?></b></td>
_ _ <?}?>
_ _ _</tr>
_ _ _ _ _ _ _ _ _ _<? if
(pro['attitem7'] >= '1')
{?>
_ _ _<tr>
_ _ <td width="33%" align="center"><a
href="java script:preview(7)">
_ _ <img border="0"
src="weaponimages/attitem7.jpg" width="50"
height="50"></a>
_
_ <b><?=pro['attitem7']?></b></td>
_ _ _</tr>
_ _ <?}?>
_ _ </td>
_ _ </tr>
_ _ _ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _ _ _<td width="100%"
align="center" colspan="3">
_ _ _ _ _ _ _ _ _ _<br>
_ _ _ _ _ _ _ _ _ _<br>
_ _ _ _ _ _ _ _ _ _<b><u>Defense
Items</b></u>
_ _ _ _ _ _ _ _ _ _<br>
_ _ _ _ _ _ _ _ _ _<br>
_ _ _<tr>
_ _ _ _ _ _ _ _ _ _<? if
(pro['defitem1'] >= '1')
{?>
_ _ <td width="33%" align="center"><a
href="java script:preview(8)">
_ _ <img border="0"
src="weaponimages/defitem1.gif" width="50"
height="50"></a>
_
_ <b><?=pro['defitem1']?></b></td>
_ _ <?}?>
_ _ _ _ _ _ _ _ _ _<? if
(pro['defitem2'] >= '1')
{?>
_ _ <td width="33%" align="center"><a
href="java script:preview(9)">
_ _ <img border="0"
src="weaponimages/defitem2.gif" width="50"
height="50"></a>
_
_ <b><?=pro['defitem2']?></b></td>
_ _ <?}?>
_ _ _ _ _ _ _ _ _ _<? if
(pro['defitem3'] >= '1')
{?>
_ _ <td width="33%" align="center"><a
href="java script:preview(10)">
_ _ <img border="0"
src="weaponimages/defitem3.gif" width="70"
height="50"></a>
_
_ <b><?=pro['defitem3']?></b></td>
_ _ <?}?>
_ _ _</tr>
_ _ _<tr>
_ _ _ _ _ _ _ _ _ _<? if
(pro['defitem4'] >= '1')
{?>
_ _ <td width="33%" align="center"><a
href="java script:preview(11)">
_ _ <img border="0"
src="weaponimages/defitem4.gif" width="50"
height="50"></a>
_
_ <b><?=pro['defitem4']?></b></td>
_ _ <?}?>
_ _ _ _ _ _ _ _ _ _<? if
(pro['defitem5'] >= '1')
{?>
_ _ <td width="33%" align="center"><a
href="java script:preview(12)">
_ _ <img border="0"
src="weaponimages/defitem5.gif" width="60"
height="50"></a>
_
_ <b><?=pro['defitem5']?></b></td>
_ _ <?}?>
_ _ _ _ _ _ _ _ _ _<? if
(pro['defitem6'] >= '1')
{?>
_ _ <td width="33%" align="center"><a
href="java script:preview(13)">
_ _ <img border="0"
src="weaponimages/defitem6.gif" width="60"
height="50"></a>
_
_ <b><?=pro['defitem6']?></b></td>
_ _ <?}?>
_ _ _</tr>
_ _ _ _ _ _ _ _ _ _<? if
(pro['defitem7'] >= '1')
{?>
_ _ _<tr>
_ _ <td width="33%" align="center"><a
href="java script:preview(14)">
_ _ <img border="0"
src="weaponimages/defitem7.jpg" width="50"
height="50"></a>
_
_ <b><?=pro['defitem7']?></b></td>
_ _ _</tr>
_ _ <?}?>
_ _ </td>
_ _ </tr>
_ _ _ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _ _ _<td width="100%"
align="center" colspan="3">
_ _ _ _ _ _ _ _ _ _<br>
_ _ _ _ _ _ _ _ _ _<br>
_ _ _ _ _ _ _ _ _ _<b><u>Special
Items</b></u>
_ _ _ _ _ _ _ _ _ _<br>
_ _ _ _ _ _ _ _ _ _<br>
_ _ _ _ _ _ _ _ _ _<? if (pro['hqitem']
>= '1') {?>
_ _ _<tr>
_ _ <td width="33%" align="center"><a
href="java script:preview(15)">
_ _ <img border="0" src="weaponimages/hqitem.gif"
width="60" height="50"></a>
_
_ <b><?=pro['hqitem']?></b></td>
_ _ _</tr>
_ _ <?}?>
_ _ _ _ _ _ _ _</table>
_ _ _ _ _ _ _ _<table border="0" cellpadding="2"
cellspacing="0" style="border-collapse: collapse"
width="100%" id="AutoNumber13">
_ _ _ _ _ _ _ _ _</table>
_ _ _ _ _ _ _ _</td>
_ _ _ _ _ _ _</tr>
_ _ _ _ _ _</table>
_ _ _ _ _ _ _ _<table border="0" cellpadding="2"
cellspacing="0" style="border-collapse: collapse"
width="100%" id="AutoNumber14"
bgcolor="#000000">
_ _ _ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _ _ _<td width="100%">
_ _ _ _ _ _ _ _ _ _<p align="center"><font
color="#ff0000"><b>PLAYER
WEALTH</b></font></td>
_ _ _ _ _ _ _ _ _</tr>
_ _ _ _ _ _ _ _</table>
_ _ _ _ _ _ _ _<table border="0" cellpadding="2"
cellspacing="0" style="border-collapse: collapse"
width="100%" id="AutoNumber13">
_ _ _ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _ _ _<td
align="center"><br><b><font
size="1">TOTAL
MONEY</font></b></td>
_ _ _ _ _ _ _ _ _</tr>
_ _ _ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _ _ _<td align="center">
_ _ _ _ _ _ _ _ _ _<br><font
color="green"><b><?=number_format(totalmoney)?></b></font><br><br></td>
_ _ _ _ _ _ _ _ _</tr>
_ _ _ _ _ _ _ _</table>
_ _ _ _ _<table border="1" cellpadding="0"
cellspacing="0" style="border-collapse: collapse"
width="100%" id="AutoNumber9"
bordercolorlight="#000000" bordercolordark="#5D6567"
bgcolor="#bababa">
_ _ _ _ _<tr>
_ _ _ _ _ _<td width="100%" align="left"
valign="top">
_ _ _ _ _ _<table border="0" cellpadding="2"
cellspacing="0" style="border-collapse: collapse"
width="100%" id="AutoNumber17">
_ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _<td width="100%"
bgcolor="#000000">
_ _ _ _ _ _ _ _<p align="center"><font
color="#ff0000"><b>CREW</b></font></td>
_ _ _ _ _ _ _</tr>
_ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _<td width="100%">
_ _ _ _ _ _ _ _<table border="0" cellpadding="10"
cellspacing="0" style="border-collapse: collapse"
width="100%" id="AutoNumber18">
_ _ _ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _ _ _<td width="100%">
<? if (pro['crew'] ==
'none') {?>
<center>None</center>
<?} else {?>
<?
query = mysql_query("SELECT * from crews WHERE name =
'".pro['crew']."'");
while (crew = mysql_fetch_array(query))
{?>
<? if (pro['crewrank'] ==
'Leader') {?>
<center><b><?=pro['crewrank']?>
of<br><br>
<?} else {?>
<center><b><?=crew[pro['crewrank']]?>
of<br><br>
<?}?>
<a
href="crewprofile.php?id=<?=crew['id'];?>"><?=pro['crew'];?></a></center></b>
<?}?>
<?}?>
_ _ _ _ _ _ _ _ _ _</td>
_ _ _ _ _ _ _ _ _</tr>
_ _ _ _ _ _ _ _</table>
_ _ _ _ _ _ _ _</td>
_ _ _ _ _ _ _</tr>
_ _ _ _ _ _</table>
_ _ _ _ _ _</td>
_ _ _ _ _</tr>
_ _ _ _</table>
_ _ _ _<table border="1" cellpadding="0"
cellspacing="0" style="border-collapse: collapse"
width="100%" id="AutoNumber7"
bordercolorlight="#000000" bordercolordark="#5D6567"
bgcolor="#bababa" height="100%">
_ _ _ _ <tr>
_ _ _ _ _ _<td width="100%" align="left"
valign="top">
_ _ _ _ _ _<table border="0" cellpadding="2"
cellspacing="0" style="border-collapse: collapse"
width="100%" id="AutoNumber15">
_ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _<td width="100%"
bgcolor="#000000">
_ _ _ _ _ _ _ _<p align="center"><font
color="#ff0000"><b>FOLLOWERS</b></font></td>
_ _ _ _ _ _ _</tr>
_ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _<td width="100%">
_ _<br><center>COMING SOON!</center>
_ _ _ _ _ _</table>
_ _ _ _ _ _</td>
_ _ _ _ _</tr>
_ _ _ _</table>
_ _ _ _</td>
_ _ _</tr>
_ _</table>
_ _</td>
_</tr>
</table></tr>
_</table>
_</center>
</div>
<br><br>
<? there = "yes"; ?>
<?}?>
<? if (there == FALSE) {?>
<center>SORRY THAT USER DONT EXIST STOP MAKING FRIENDS
UP</center>
_<b></b>
</td>
<br>
<br>
<br>
<?}?>
</td></tr>
<br>
_ _ _ _ _ _ _ _ _<br> </td>
_ _ _ _ _ _ _ _<td></td>
_ _ _ _ _ _ _</tr>
_ _ _ _ _ _</table></TD>
_ _ _ _ _<TD rowspan="7" valign="top">
_ _ _ _ _<img src="images/index_linie.gif"
ALT=""></TD>
_ _ _ _ _<td height="42"
valign="top"><table width="100%"
border="0" cellpadding="0"
cellspacing="0">
_ _ _ _ _ _ _<!--DWLayoutTable-->
_ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _<TD width="223" height="26"
valign="top" style="border-collapse:
collapse"><table width="100%" border="0"
style="border-collapse: collapse" cellpadding="0"
cellspacing="0" background="images/index_27.gif">
_ _ _ _ _ _ _ _ _ <tr>
_ _ _ _ _ _ _ _ _ _ _<TD height="4"></TD>
_ _ _ _ _ _ _ _ _ _</tr>
_ _ _ _ _ _ _ _ _ _<tr>
_ _ _ _ _ _ _ _ _ _ _<TD width="223" height="10"
align="center" valign="top">
_ _ _ _ _ _ _ _ _ _ _ _<font
color="#FFFFFF">Stats/Shout Box</a></TD>
_ _ _ _ _ _ _ _ _ _</tr>
_ _ <tr>
_ _ _ _ _ _ _ _ _ _ _<TD height="9"></TD>
_ _ _ _ _ _ _ _ _ _</tr>
_ _ _ _ _ _ _ _ _</table></TD>
_ _ _ _ _ _ _</tr>
_ _ _ _ _ _</table></td>
_ _ _ _</tr>
_ _ _ _<tr>
_ _ _ _ _<td height="427" width="223"
valign="top">
_ _ _ _ _<table border="0" cellpadding="0"
cellspacing="0" style="border-collapse: collapse"
bordercolor="#111111" width="100%"
id="AutoNumber2" height="11">
<?php
results= mysql_query("SELECT * FROM shoutbox Order by id
desc LIMIT 0, 10");
id = "id";
username = "username";
message = "message";
date = "date";
echo mysql_error();
if (mysql_Numrows(results)>0) _ _ _ _ _ _ _
_ _ _ _ _ _ _//if there are records in the fields
{
_numrows=mysql_NumRows(results); _ _ _ _ _ _ _ _
_ _ _ //count them
_x=0;
_while (x<numrows){ _ //loop through the
records
_ _theid=mysql_result(results,x,id);
_
_theusername=mysql_result(results,x,
username);
_
_themessage=mysql_result(results,x,m
essage);
_
_thedate=mysql_result(results,x,date
);
query = mysql_query("SELECT * from members WHERE
username = 'theusername'");
while (sb = mysql_fetch_array(query)) {
?>
<tr>
_<td><font size="1"><a
href="profile.php?id=<?=sb['id'];?>"><b><?=theusername?></b></a>
- <?=themessage?> </font
size></td>
</tr>
<? there = "yes";?>
<?
_ _x++;
_}
?>
<?}?>
<?}?>
<? if (there != 'yes') {?>
<tr>
_<td> - </td>
</tr>
<tr>
_<td> - </td>
</tr>
<tr>
_<td> - </td>
</tr>
<tr>
_<td> - </td>
</tr>
<tr>
_<td> - </td>
</tr>
<tr>
_<td> - </td>
</tr>
<tr>
_<td> - </td>
</tr>
<tr>
_<td> - </td>
</tr>
<tr>
_<td> - </td>
</tr>
<tr>
_<td> - </td>
</tr>
<?}?>
_ _ _ _ _</table>
_ _ _ _ _</td>
_ _ _ _</tr>
_ _ _</table></TD>
_</TR>
_<TR>
_ _<TD height="5" COLSPAN="14"
valign="top">
_ _<IMG SRC="images/index_32.gif" ALT=""
></TD>
_</TR>
_<TR>
_ _<TD height="31" COLSPAN="14"
valign="top" class="copyright"
align="center">
_ _ _Copyright 2003 by Thugwars.net</TD>
_</TR>
_<TR>
_ _<TD height="2" COLSPAN="14"
valign="top">
_ _<IMG SRC="images/index_34.gif" ALT=""
></TD>
_</TR>
_<TR>
_ _<TD height="1"> <IMG
SRC="images/spacer.gif" WIDTH="144"
HEIGHT="1" ALT="" ></TD>
_ _<TD> <IMG SRC="images/spacer.gif"
ALT="" ></TD>
_ _<TD width="93"> <IMG
SRC="images/spacer.gif" WIDTH="93" HEIGHT="1"
ALT="" ></TD>
_ _<TD width="52"> <IMG
SRC="images/spacer.gif" WIDTH="52" HEIGHT="1"
ALT="" ></TD>
_ _<TD> <IMG SRC="images/spacer.gif"
ALT="" ></TD>
_ _<TD> <IMG SRC="images/spacer.gif"
WIDTH="145" HEIGHT="1" ALT=""
></TD>
_ _<TD> <IMG SRC="images/spacer.gif"
ALT="" ></TD>
_ _<TD> <IMG SRC="images/spacer.gif"
WIDTH="145" HEIGHT="1" ALT=""
></TD>
_ _<TD> <IMG SRC="images/spacer.gif"
ALT="" ></TD>
_ _<TD> <IMG SRC="images/spacer.gif"
WIDTH="145" HEIGHT="1" ALT=""
></TD>
_ _<TD> <IMG SRC="images/spacer.gif"
ALT="" ></TD>
_ _<TD> <IMG SRC="images/spacer.gif"
WIDTH="145" HEIGHT="1" ALT=""
></TD>
_ _<TD> <IMG SRC="images/spacer.gif"
ALT="" ></TD>
_ _<TD> <IMG SRC="images/spacer.gif"
WIDTH="125" HEIGHT="1" ALT=""
></TD>
_</TR>
</TABLE>
</BODY>
</HTML>
--------
i no its very long but i need help everytime i goto profile.php it
says sorry that user dont exist plz can someone help me fix this.
thanx for ur help
Rich
p.s the error msg is:
--------
<? there = "yes"; ?>
<?}?>
<? if (there == FALSE) {?>
<center>SORRY THAT USER DONT EXIST STOP MAKING FRIENDS
UP</center>
--------
but i dunno if its the script or that line or wot so plz help me.
----------------------------------------
The post originated from PHP Freaks:
----------------------------------------
http://www.phpfreaks.com
http://www.phpfreaks.com/forums
| |
| Janwillem Borleffs 2004-05-22, 6:30 pm |
| richarro123 wrote:
> hey all i ned urgent php help with this::
> --------
[...]
> p.s the error msg is:
> --------
> <? there = "yes"; ?>
> <?}?>
> <? if (there == FALSE) {?>
> <center>SORRY THAT USER DONT EXIST STOP MAKING FRIENDS
> UP</center>
> --------
> but i dunno if its the script or that line or wot so plz help me.
>
It is not clear where $there gets assigned FALSE as the value. Which snippet
takes care of this?
It is possible that you really mean to test whether $there has been set or
not. In this case, you should use isset($there) instead.
If you are wondering which conditions cause $there to contain the value
`yes`:' when $pro['bansus'] equals either `banned`, `suspended` or `no`.
When non of these conditions apply, the error message will be shown. Where
$pro originates from isn't clear either.
If you want my advise:
* Rip out the HTML, work out the program logics first
* Use compact coding, a lot of conditions in the script are obsolete
* Don't rely on your database queries too much, build in some error handling
Goodluck
JW
| |
| richarro123 2004-05-24, 11:32 am |
| --------
<?
if (pro['bansus'] == 'banned') {
echo "<br><center><b>Sorry this user has
been banned!</center></b>";
there = "yes";
} elseif (pro['bansus'] ==
'suspended') {
echo "<br><center><b>Sorry this user has
been suspended!</center></b>";
there = "yes";
} elseif (pro['bansus'] == 'no')
{ ?>
--------
would that be what you were looking for?
----------------------------------------
The post originated from PHP Freaks:
----------------------------------------
http://www.phpfreaks.com
http://www.phpfreaks.com/forums
|
|
|
|
|