Jump to content
MakeWebGames

Help using Tables!


Joel

Recommended Posts

Hi All,

Im having trouble with creating tables, I can create them but when i do all the Text goes Bold in the Table,

Im not shaw why this happens, But I've tried loads things, And it just wont go away, Heres my Explore.php,

And tell me how i can Not make it go Bold Please,

 

<?php
include "globals.php";
$tresder=(int) rand(100,999);
if($ir['jail'] or $ir['hospital']) { die("This Page Cannot be Accessed while in Jail or Hospital."); }
if ($ir['donatorpack'] == 0)  
{
print"
[b]<table cellpadding=8 width=95% border=1><th width=25%>[/b][/b]<form action=starterkit.php><input type='submit' value='Claim your free Starter Kit now! (THIS DOES NOT WORK YET!'></form>";
}
$eon = mysql_fetch_array($db->query("SELECT * FROM cities WHERE cityid = '{$ir['location']}'"));
echo "<hr>{$eon['cityname']}
<hr>";
$eon = mysql_fetch_array($db->query("SELECT * FROM cities WHERE cityid = '{$ir['location']}'"));
echo "<marquee>Your Currently Exploring {$eon['cityname']}, Theres Going To Be All New Stuff, Coming Soon!</marquee>
<hr>

<center><table width=90% cellspacing=1 class='table'><tr style='background:grey'>
<td valign=top>
[/b]<center><u><font color=#0066FF><h3>Shops and Markets</h3></u>

[url='shops.php']Shops[/url]

[url='itemmarket.php']Item Market[/url]

[url='cmarket.php']Crystal Market[/url]

[url='stockmarket.php']Stock Market[/url]

[url='evolutionsstore.php']Evolutions Store[/url]</td>
<td valign=top>
<center><u><font color=#0066FF><font-family: verdana><h3>Local City</h3></u>

[url='monorail.php']Travel Agency[/url]

[url='estate.php']Estate Agent[/url]

[url='bank.php']City Bank[/url]

[url='stockportfolio.php']Stock Portfolio[/url]

[url='ruby_trader.php']Ruby Trader[/url]

[url='crystaltemple.php']Crystal Trader[/url]
";
if($ir['location'] == 5)
{
print "

[url='cyberbank.php']Cyber Bank[/url]
";
}
print "</td>
<td valign=top>
<center><u><font color=#0066FF><h3>Dark Side</h3></u>

[url='gangcentral.php']Gangs[/url]

[url='gangwars.php']Gang Wars[/url]

[url='slotsmachine.php?tresde=$tresder']Slots Machine[/url]

[url='roulette.php?tresde=$tresder']Roulette[/url]

[url='lucky.php']Lucky Boxes[/url]";
if($ir['location'] == 6)
{
print "

[url='brothel.php']Brothel[/url]
";
}
if($ir['location'] == 5)
{
print "

[url='slotsmachine3.php']Super Slots[/url]
";
}
print "</td></tr><tr height=100>
<td valign=top>
<center><u><font color=#0066FF><h3>Statistics Dept</h3></u>

[url='userlist.php']User List[/url]

[url='stafflist.php']{$set['game_name']} Staff[/url]

[url='halloffame.php']Hall of Fame[/url]

[url='usersonline.php']Users Online[/url]</td><td valign=top>
<center><u><font color=#0066FF><h3>Mysterious</h3></u>

[url='polling.php']Polling Booth[/url]

[url='bounty.php']Bounty[/url]

[url='battletent.php']Battle Tent[/url]</td><td valign=top>
<center><u><font color=#0066FF><h3>Jails</h3></u>

[url='fedjail.php']Federal Jail[/url]

[url='jail.php']City Jail[/url]
";

print "</td></tr></table>

This is your referal link: http://{$domain}/register.php?REF=$userid 

Every signup from this link earns you 5 valuable crystals!";
if($ir['user_level'] > 1)
{
//-- Finding items query
$fia=(int) rand(1000000,9999999);
$fib=(int) rand(1000000,9999999);
if($fia == $fib)
{
$iq=$db->query("SELECT * FROM items WHERE itmbuyable=1 ORDER BY rand() LIMIT 1",$c);
$r=mysql_fetch_array($iq);
$item=$r['itmid'];
$userid=$ir['userid'];
$db->query("INSERT INTO inventory VALUES ('', $item, $userid, 21)",$c);
event_add($userid,"You found a {$r['itmname']} While Walking Around the city.",$c);
}
print "

[url='staff.php']| Staff Panel |[/url]
\n[b]</tr></th></td></table>[/b]";
}
$h->endpage();
?>

 

I have i highlighted it ib bold so you no where the table starts and ends,

Hope you people Help me, Thanks

Link to comment
Share on other sites

Re: Help using Tables!

If thats where its located, He's my header.php

 

<?php

class headers {
function startheaders() {
global $ir, $set;
echo <<<EOF
<!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">
<head>
<link rel="shortcut icon" href="weblogo.ico" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>{$set['game_name']}</title>
<style type="text/css">
<!--
body {
margin-top: 0px;
margin-bottom: 0px;
font-family:Tahoma;font-size:12.4px;color: black;
  font-variant: small-caps;
  scrollbar-base-color: #000000; 
  scrollbar-arrow-color: #0066FF;
  scrollbar-DarkShadow-Color: #0066FF;
}
a:visited,a:active,a:hover,a:link { color: black;text-decoration: none; }
a:hover 
{ 
  cursor: none; background:#;
  text-decoration: underline; }
table,tr,td { font-family:Tahoma;font-size: 12.4px; }
img { border:none; }
textarea { font-family:Tahoma;font-size:12.4px;color: black; }
.table2 {
}
body {
   background-color: #000000;
   background-image: url('backgroundnewwww.gif');
   background-repeat: no-repeat;
   background-position: center
}
.table {
background-color:#000000;
}
.table3 {
background-color:#000000;
}
.table td {
background-color:#999999;
height:22px;
}
.table3 td {
background-color:#000000;
}
td .alt {
background-color:#0066FF;
height:22px;
}
td .h {
font-weight: bold;
background-color: #0066FF;
}
.table th {
font-weight: bold;
background-color: #0066FF;
}
-->
</style></head>
<body>
<center>
<table width="940" border="0" cellpadding="0" cellspacing="0" class="table2">
<tr>
<td class="lgrad"></td>
<td class="center">
EOF;
}
function userdata($ir,$lv,$fm,$cm,$dosessh=1)
{
global $db,$c,$userid, $set;
$IP = ($_SERVER['HTTP_X_FORWARDED_FOR'])
   ?  $_SERVER['HTTP_X_FORWARDED_FOR']
   :  $_SERVER['REMOTE_ADDR'];
$db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid");
if(!$ir['email'])
{
global $domain;
die ("<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID.");
}
if($dosessh && ($_SESSION['attacking'] || $ir['attacking']))
{
print "You lost all your EXP for running from the fight.";
$db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid");
$_SESSION['attacking']=0;
}
$enperc=(int) ($ir['energy']/$ir['maxenergy']*100);
$wiperc=(int) ($ir['will']/$ir['maxwill']*100);
$experc=(int) ( $ir['exp']/$ir['exp_needed']*100);
$brperc=(int) ($ir['brave']/$ir['maxbrave']*100);
$hpperc=(int) ($ir['hp']/$ir['maxhp']*100);
$enopp=100-$enperc;
$wiopp=100-$wiperc;
$exopp=100-$experc;
$bropp=100-$brperc;
$hpopp=100-$hpperc;
$d="";
$_GET['ID'] = abs(@intval($_GET['ID']));
$_GET['viewforum'] = abs(@intval($_GET['viewforum']));
$_GET['viewtopic'] = abs(@intval($_GET['viewtopic']));
$u=$ir['username'];
if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="[img=donator.gif]"; }

$gn=""; 
global $staffpage;


print <<<OUT
[img=gangstalife2.png]


<table width="99%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td width="20%" valign="top">

[b]<center>Name:[/b] $gn{$u} [{$ir['userid']}] $d

[b]Level:[/b] {$ir['level']}

[b]Rubys:[/b] {$ir['ruby']}

[b]Crystals:[/b] {$ir['crystals']} [url='voting.php']<font color=red>[Earn]</font>[/url]

<font color=blue>[[url='logout.php']<font color=blue>Emergency Logout</font>[/url]]</font><hr>
[b]Energy:[/b] {$enperc}%

[img=endleft.gif]<img src=bargreen.gif width=$enperc height=12><img src=barred.gif width=$enopp height=12>[img=endright.gif]

[b]Will:[/b] {$wiperc}%

[img=endleft.gif]<img src=bargreen.gif width=$wiperc height=12><img src=barred.gif width=$wiopp height=12>[img=endright.gif]

[b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']}

[img=endleft.gif]<img src=bargreen.gif width=$brperc height=12><img src=barred.gif width=$bropp height=12>[img=endright.gif]

[b]EXP:[/b] {$experc}%

[img=endleft.gif]<img src=bargreen.gif width=$experc height=12><img src=barred.gif width=$exopp height=12>[img=endright.gif]

[b]Health:[/b] {$hpperc}%

[img=endleft.gif]<img src=bargreen.gif width=$hpperc height=12><img src=barred.gif width=$hpopp height=12>[img=endright.gif]
<hr>

OUT;
if($ir['fedjail'])
{
$q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid");
$r=$db->fetch_row($q);
die("[b]<font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s).

Reason: {$r['fed_reason']}</font>[/b]</body></html>");
}
if(file_exists('ipbans/'.$IP))
{
die("[b]<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font>[/b]</body></html>");
}
}
function menuarea()
{
include "mainmenu.php";
global $ir,$c;
print '</td><td width="2" class="linegrad"> </td><td width="80%" valign="top">
<center>';
if($ir['hospital'])
{
 print "[b]NB:[/b] You are currently in hospital for {$ir['hospital']} minutes.
";
}
if($ir['jail'])
{
 print "[b]NB:[/b] You are currently in jail for {$ir['jail']} minutes.
";
}
print "<a href='voting.php'>[b]<h2.5>| Vote |</h2.5>[/b]";


print "[url='donator.php'][b]<h2.5>| Donate to {$set['game_name']} now for game benefits! |</h2.5>[/b][/url]
";
}
function smenuarea()
{
include "smenu.php";
global $ir,$c;
print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%"  bgcolor="#'.$bgcolor.'" valign="top"><center>';
}
function endpage()
 {
     global $db,$ir,$set,$c;
     $date = date("Y");
     $date2 = $date+1;
     echo '
        </center>
         <td width="13%" valign="top" height="100%" border="0">';
          include("mainmenu2.php");
         echo '
         </td>
        </td>
        </tr>
       </table>
        </td>
        <td class="rgrad"></td>
        </tr>
        <tr>
         <td colspan="3">
          <table cellpadding="0" cellspacing="0" border="0" width="100%">
           <tr>
             <td class="dgradl"> </td>
             <td class="dgrad"><center></center></td>
             <td class="dgradr"> </td>
           </tr>
          </table>
         </td>
        </tr>
        </table>
     </body>
        _____________</body>
    </html>';
 }
}
?>
Link to comment
Share on other sites

Re: Help using Tables!

Try this!

 

<?php
include "globals.php";
$tresder=(int) rand(100,999);
if($ir['jail'] or $ir['hospital']) 
{ 
die("This Page Cannot be Accessed while in Jail or Hospital."); 
}
if ($ir['donatorpack'] == 0)  
{
print"
<table cellpadding=8 width=95% border=1>
<th width=25%>
<form action=starterkit.php>
<input type='submit' value='Claim your free Starter Kit now! (THIS DOES NOT WORK YET!'></form>";
}
$eon = mysql_fetch_array($db->query("SELECT * FROM cities WHERE cityid = '{$ir['location']}'"));
echo "<hr>{$eon['cityname']}
<hr>";
$eon = mysql_fetch_array($db->query("SELECT * FROM cities WHERE cityid = '{$ir['location']}'"));
echo "<marquee>Your Currently Exploring {$eon['cityname']}, Theres Going To Be All New Stuff, Coming Soon!</marquee>
<hr>

<center>
<table width=90% cellspacing=1 class='table'>
<tr style='background:grey'>
<td valign=top>
<center><u><font color=#0066FF><h3>Shops and Markets</h3></u>

[url='shops.php']Shops[/url]

[url='itemmarket.php']Item Market[/url]

[url='cmarket.php']Crystal Market[/url]

[url='stockmarket.php']Stock Market[/url]

[url='evolutionsstore.php']Evolutions Store[/url]</td>
<td valign=top>
<center>
<u>
<font color=#0066FF><font-family: verdana><h3>Local City</h3></u>

[url='monorail.php']Travel Agency[/url]

[url='estate.php']Estate Agent[/url]

[url='bank.php']City Bank[/url]

[url='stockportfolio.php']Stock Portfolio[/url]

[url='ruby_trader.php']Ruby Trader[/url]

[url='crystaltemple.php']Crystal Trader[/url]
";
if($ir['location'] == 5)
{
print "

[url='cyberbank.php']Cyber Bank[/url]
";
}
print "</td>
<td valign=top>
<center><u><font color=#0066FF><h3>Dark Side</h3></u>

[url='gangcentral.php']Gangs[/url]

[url='gangwars.php']Gang Wars[/url]

[url='slotsmachine.php?tresde=$tresder']Slots Machine[/url]

[url='roulette.php?tresde=$tresder']Roulette[/url]

[url='lucky.php']Lucky Boxes[/url]";
if($ir['location'] == 6)
{
print "

[url='brothel.php']Brothel[/url]
";
}
if($ir['location'] == 5)
{
print "

[url='slotsmachine3.php']Super Slots[/url]
";
}
print "</td>
</tr>
<tr height=100>
<td valign=top>
<center><u><font color=#0066FF><h3>Statistics Dept</h3></u>

[url='userlist.php']User List[/url]

[url='stafflist.php']{$set['game_name']} Staff[/url]

[url='halloffame.php']Hall of Fame[/url]

[url='usersonline.php']Users Online[/url]</td><td valign=top>
<center><u><font color=#0066FF><h3>Mysterious</h3></u>

[url='polling.php']Polling Booth[/url]

[url='bounty.php']Bounty[/url]

[url='battletent.php']Battle Tent[/url]</td><td valign=top>
<center><u><font color=#0066FF><h3>Jails</h3></u>

[url='fedjail.php']Federal Jail[/url]

[url='jail.php']City Jail[/url]
";

print "</td></tr></table>

This is your referal link: http://{$domain}/register.php?REF=$userid 

Every signup from this link earns you 5 valuable crystals!";
if($ir['user_level'] > 1)
{
//-- Finding items query
$fia=(int) rand(1000000,9999999);
$fib=(int) rand(1000000,9999999);
if($fia == $fib)
{
$iq=$db->query("SELECT * FROM items WHERE itmbuyable=1 ORDER BY rand() LIMIT 1",$c);
$r=mysql_fetch_array($iq);
$item=$r['itmid'];
$userid=$ir['userid'];
$db->query("INSERT INTO inventory VALUES ('', $item, $userid, 21)",$c);
event_add($userid,"You found a {$r['itmname']} While Walking Around the city.",$c);
}
print "

[url='staff.php']| Staff Panel |[/url]
\n[b]</tr></th></td></table>[/b]";
}
$h->endpage();
?>
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...