Jump to content

[SOLVED] site doesent fit


iSpeedDevil!

Recommended Posts

i have a problem!

 

when i go to my sites, like credits.php only the bottom of the page shows, and the same with many other pages!

 

i use logged_in.php to redirect the pages and have split it up to like left side menu, banner on top, page browsing in middle, and a right side menu

 

Website: www.mafiabossworld.com

 

Username: demo

Password: demo

 

Please go into the credits page on the left side and see the problem, it is only showing send points, but is also meant to show the things you can buy, and if you do select all, you can see the rest of the text

 

please help me.. :)

Link to comment
https://forums.phpfreaks.com/topic/146334-solved-site-doesent-fit/
Share on other sites

logged_in.php code:

 

<html>
<head>
<title>MafiaBossWorld BETA</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
<!--
if (self.location != top.location)
middle.location.replace('index.php');

// -->
</script>
</head>
<frameset rows="97,*" cols="*" framespacing="0" frameborder="no" border="0">
<frame name="littlebanner" src="banner.php" marginwidth="2" marginheight="2" scrolling="no" frameborder="0">
    
<frameset rows="*" cols="130,*" framespacing="0" frameborder="NO" border="0">
    <frame src="menu.php" name="leftFrame" noresize>
    
<frameset rows="*" cols="1000,*" framespacing="0" frameborder="NO" border="0">
    <frame src="welcome.php" name="middle" noresize>

<frameset rows="*" cols="300,*" framespacing="0" frameborder="NO" border="0">		
<frame src="menu2.php" name="rightFrame1" noresize title="rightFrame">

</frameset>
    </frameset>
</frameset>
</frameset>
</noframes>
</noframes>


</html>



 

 

Credits page code:

<?
include_once "includes/functions.php";
$query=mysql_query("SELECT * FROM users WHERE username='$username' LIMIT 1");
$info = mysql_fetch_object($query);
$query1=mysql_query("SELECT * FROM users WHERE username='$username' LIMIT 1");
$fetch = mysql_fetch_object($query1);

if($_POST['spend']){
$type=$_POST['radiobutton'];
if($type==1){
if($info->points < 10){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif($info->points >= 10){
$newpoints=$info->points-10;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("UPDATE users SET weapon='Dragunov' WHERE username='$username'");
echo "<b><font color=white>Successfully Bought!<br>";
}}
elseif($type==2){
if($info->points < 10){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif($info->points >= 10){
$newpoints=$info->points-10;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("UPDATE users SET protection='Armoured Limo' WHERE username='$username'");
echo "<b><font color=white>Limo Bought!<br>";
}}
elseif($type==17){
if($info->points < 10){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif($info->points >= 10){
$newpoints=$info->points-10;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("UPDATE users SET health='100' WHERE username='$username'");
echo "<b><font color=white>Successfully Bought!<br>";
}}
elseif($type==3){
if($info->points < 5){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif($info->points >= 5){
$newpoints=$info->points-5;
$newmoney1=$info->money+2500000;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("UPDATE users SET money='$newmoney1' WHERE username='$username'");
echo "<b><font color=white>£2,500,000 Added to your balance!<br>";
}}
elseif($type==4){
if($info->points < 5){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif($info->points >= 5){
$newpoints=$info->points-5;
$newbullets1=$info->bullets+1000;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("UPDATE users SET bullets='$newbullets1' WHERE username='$username'");
echo "<b><font color=white>1,000 Bullets added and equiped to Your Inventory!<br>";
}}
elseif($type==444){
if($info->points < 5){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif($info->points >= 5){
$newpoints=$info->points-5;
$newlevel=$info->level+1;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("UPDATE users SET bullets='$newlevel' WHERE username='$username'");
echo "<b><font color=white>Test!<br>";
}}
elseif($type==18){
if($info->points < 1 || $fetch->health == "100"){
echo "<b><font color=white>You dont have enough Credits<br> Or Your at 100% Health!";
}elseif($info->points >= 1){
$newpoints=$info->points-1;
$newhealth1=$info->health+10;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("UPDATE users SET health='$newhealth1' WHERE username='$username'");
echo "<b><font color=white>10% Bought!<br>";
}}
elseif($type==19){
if($info->points < 10){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif($info->points >= 10){
$newpoints=$info->points-10;
$newlevel1=$info->level+1;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("UPDATE users SET health='$newlevel1' WHERE username='$username'");
echo "<b><font color=white>OC Timer Reset!<br>";
}}
elseif($type==4){
if($info->points < 1){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif($info->points >= 1){
$newpoints=$info->points-1;
$newbullets1=$info->health+10;
mysql_query("UPDATE users SET points='$newhealth' WHERE username='$username'");
mysql_query("UPDATE users SET bullets='$newhealth1' WHERE username='$username'");
echo "<b><font color=white>Kill Timer Reset!<br>";
}}
elseif($type==5){
if($info->points < 10){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif($info->points >= 10){
$newpoints=$info->points-10;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("UPDATE users SET last_oc='0' WHERE username='$username'");
echo "<b><font color=white>OC Timer Reset!<br>";
}}
elseif($type==6){
if($info->points < 1){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif($info->points >= 1){
$newpoints=$info->points-1;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("UPDATE users SET lasttravel='0' WHERE username='$username'");
echo "<b><font color=white>Travel Timer Reset!!<br>";
}}
elseif($type==7){
if($info->points < 1){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif($info->points >= 1){
$newpoints=$info->points-1;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("UPDATE users SET lastgta='0' WHERE username='$username'");
echo "<b><font color=white>GTA Timer Reset!<br>";
}}
elseif($type==15){
if($info->points < 1){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif($info->points >= 1){
$newpoints=$info->points-1;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("UPDATE users SET last_kill='0' WHERE username='$username'");
echo "<b><font color=white>Kill Timer Reset!<br>";
}}
elseif($type=={
if($info->points < 1){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif($info->points >= 1){
$newpoints=$info->points-1;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("UPDATE users SET lastcrime='0' WHERE username='$username'");
echo "<b><font color=white>Crime timer Reset!<br>";
}}
elseif($type==9){
if($info->points < 85){
echo "<b><font color=white>You don't have enough Credits<br>";
}elseif($info->points >= 85){
$newpoints=$info->points-85;
$newrpoints=$info->rankpoints+1000;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("UPDATE users SET rankpoints='$newrpoints' WHERE username='$username'");
echo "<b><font color=white>1,000 Rankpoints added!<br>";
}}
elseif($type==10){
if($info->points < 1){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif($info->points >= 1){
$newpoints=$info->points-1;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("INSERT INTO `lotto` (`id`, `owner`) VALUES ('', '$username');");
mysql_query("INSERT INTO `lotto` (`id`, `owner`) VALUES ('', '$username');");
mysql_query("INSERT INTO `lotto` (`id`, `owner`) VALUES ('', '$username');");
mysql_query("INSERT INTO `lotto` (`id`, `owner`) VALUES ('', '$username');");
mysql_query("INSERT INTO `lotto` (`id`, `owner`) VALUES ('', '$username');");
mysql_query("INSERT INTO `lotto` (`id`, `owner`) VALUES ('', '$username');");
mysql_query("INSERT INTO `lotto` (`id`, `owner`) VALUES ('', '$username');");
mysql_query("INSERT INTO `lotto` (`id`, `owner`) VALUES ('', '$username');");
mysql_query("INSERT INTO `lotto` (`id`, `owner`) VALUES ('', '$username');");
mysql_query("INSERT INTO `lotto` (`id`, `owner`) VALUES ('', '$username');");
echo "<b><font color=white>Lotto Tickets Bought!<br>";
}}

elseif($type==11){
if($info->points < 1000){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif($info->points >= 1000){
$newpoints=$info->points-1000;
$newrpoints=$info->rankpoints+100;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("UPDATE users SET status='Dead' WHERE username='$duser2'");
echo "<b><font color=white>$duser2 Is Now dead!<br>";
}}

elseif($type==12){
if($info->points < 500){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif($info->points >= 500){
$newpoints=$info->points-500;
$newrpoints=$info->rankpoints+100;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("UPDATE users SET status='Alive' WHERE username='$duser'");
echo "<b><font color=white>Your Revived $duser!<br>";
}}

elseif($type==13){
if($info->points < 750){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif($info->points >= 750){
$newpoints=$info->points-750;
$newrpoints=$info->rankpoints+100;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("UPDATE users SET Gender='$duser3' WHERE username='$username'");
echo "<b><font color=white>Gender changed to $duser3!<br>";
}}

elseif($type==14){
if($info->points < 1200){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif($info->points >= 1200){
$newpoints=$info->points-1200;
$newrpoints=$info->rankpoints+100;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("UPDATE users SET username='$duser4' WHERE username='$username'");
echo "<b><font color=white>Your username is now $duser4!<br>";
}}
elseif($type==16){
if($info->points < 7){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif($info->points >= 7){
$newpoints=$info->points-7;
$newbackfire1=$info->backfire+200;
mysql_query("UPDATE users SET points='$newpoints' WHERE username='$username'");
mysql_query("UPDATE users SET backfire='$newbackfire1' WHERE username='$username'");
echo "<b><font color=white>Backfire updated!<br>";
}}


}
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">

<table width="400" border="1"  bgcolor="#000000" align="center" cellpadding="0" cellspacing="0" bordercolor="000000">
  <tr>
    <td colspan=3 class=header background="includes/grad.gif"><div align="center">Credits. You have <?=$info->points; ?> Credits </div></td>
  </tr>
  <tr bgcolor=white>
    <td width=6% class=tip background="includes/grad.gif"> </td>
    <td width=70% class=tip background="includes/grad.gif"><div align="center"><font color=white><b>Description</div></td>
    <td width=24% class=tip background="includes/grad.gif"><div align="center"><b><font color=white>Price</div></td>
  </tr>
<tr>
    <td><input name="radiobutton" type="radio" value="1" /></td>
    <td>Dragunov</td>
    <td>10 Credits </td>
  </tr>
  <tr>
    <td><input name="radiobutton" type="radio" value="2" /></td>
    <td>Armoured Limo</td>
    <td>10 Credits </td>
  </tr>
  <tr>
    <td><input name="radiobutton" type="radio" value="3" /></td>
    <td>£2,500,000</td>
    <td>5 Credits</td>
  </tr>
  <tr>
    <td><input name="radiobutton" type="radio" value="4" /></td>
    <td>1000 Bullets </td>
    <td>5 Credits</td>
  </tr>
  <tr>
    <td><input name="radiobutton" type="radio" value="5" /></td>
    <td>Reset OC Timer </td>
    <td>10 Credits </td>
  </tr>
<tr>
    <td><input name="radiobutton" type="radio" value="15" /></td>
    <td>Reset shoot Timer </td>
    <td>1 Credits </td>
  </tr>
    <tr>
      <td><input name="radiobutton" type="radio" value="6" /></td>
    <td>Reset Travel Timer</td>
    <td>1 Credits </td>
  </tr>
    <tr>
      <td><input name="radiobutton" type="radio" value="7" /></td>
    <td>Reset GTA Timer</td>
    <td>1 Credits </td>
  </tr>
    <tr>
      <td><input name="radiobutton" type="radio" value="8" /></td>
    <td>Reset Crime Timer</td>
    <td>1 Credits </td>
  </tr>
      <td><input name="radiobutton" type="radio" value="18" /></td>
    <td>10% Health Pack</td>
    <td>1 Credits</td>
<tr>
      <td><input name="radiobutton" type="radio" value="16" /></td>
    <td>Put Backfire to 200 Bullets</td>
    <td>7 Credits </td>
  </tr>
    <tr>
      <td><input name="radiobutton" type="radio" value="9" /></td>
    <td>1,000 Rank Points </td>
    <td>85  Credits </td>
  </tr>
<tr>
      <td><input name="radiobutton" type="radio" value="17" /></td>
    <td>Restore to Full Health </td>
    <td>10  Credits </td>
  </tr>
    <tr>
      <td><input name="radiobutton" type="radio" value="10" /></td>
    <td>Get 10 lotto tickets </td>
    <td>1 Credits </td>
    <tr>
      <td><input name="radiobutton" type="radio" value="12" /></td>
      <td>Revive A Dead Account - Username To Revive:
          <input type="text" name="duser" /></td>
      <td>500 Credits </td>
    </tr>
    <tr>
      <td><input name="radiobutton" type="radio" value="13" /></td>
      <td>Chage Your Gender - Name Of Gender:
        <input name="duser3" type="text" id="duser3" /></td>
      <td>750 Credits </td>
    </tr>
    <tr>
      <td><input name="radiobutton" type="radio" value="14" /></td>
    <td>Chage Your Name - Username You Want:
      <input name="duser4" type="text" id="duser4"></td>
    <td>1200  Credits</td>

  </tr>
    <tr>
    <td colspan=3>

      <div align="right">
<input name="spend" type="submit" id="spend" value="Buy!" class="button" />  
</div>
     </td>
</tr>
<br><form method=post action=>
<table width=1024 cellspacing=0 cellpadding=0 border=0 bordercolor=black class=thinline align=center>
       <tr class=header>
      <td class=header colspan=2 background="includes/grad.gif"><div align=center>Send Credits</div></td>
    </tr><tr>
      <td><center>
        <div align="center">Username:
          <input type="text" name="to_person"> <br>
<br>
        Ammount:  
        <input type="text" size=10 name="send_amount"> 
        <input type="submit" name="pointsbutton" value="Send" class="button">

        <?
if($_POST['pointsbutton']){
echo "<p><center>";
$send_amount=intval(strip_tags($_POST['send_amount']));

$to_person = strip_tags($_POST['to_person']);
if (!$to_person){
echo "Please enter a username.";
}elseif ($to_person){

$num_true=mysql_num_rows(mysql_query("SELECT * FROM users WHERE username='$to_person'"));

if ($num_true == 0){
echo "<b><font color=white>No such user."; 
}elseif ($num_true != 0){

if ($send_amount > "0"){
	if ($send_amount == 0 || !$send_amount || ereg('[^0-9]',$send_amount)){
print "You cant send that amount.";

}elseif ($send_amount != 0 || $send_amount || !ereg('[^0-9]',$send_amount)){



if ($send_amount > $fetch->points){
echo "<b><font color=white>You dont have enough Credits<br>";
}elseif ($send_amount <= $fetch->points){


if (strtolower($to_person) == strtolower($username)){
echo "You cannot send Credits to your self";
}elseif (strtolower($to_person) != strtolower($username)){

$to_user=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$to_person'"));





mysql_query("UPDATE users SET points = points-$send_amount WHERE username='$username'");
mysql_query("UPDATE users SET points = points+$send_amount WHERE username='$to_person'");





echo "<b><font color=white>You successfully sent $send_amount Credits.";
echo "<meta http-equiv=\"refresh\" content=\"3;URL=credits.php\">";
}
}}}}}}
?>
<br>
<br>





        
      </tr>
  </table></form>
<table width="68%" color=white border="1" align="center" cellpadding="0" cellspacing="0" class=thinline rules=none>
  <tr> 
    <td class=header background="includes/grad.gif"><center>
        <b>Buy Credits
      </center></td>
  </tr>
<br>
    <tr>
    <td bgcolor="#000000"><br>
<b><center><font size=1><b>If you wish To buy Credits you can buy as Many as you want.Credits are 10p per credit, If you wish to buy credits <a href="http://gangzbliss.freehostia.com/gb/send.php?fromper=Reevez">Click here</a> and Message reevez .In the message inclue how many credits you want and your paypal.You will pay by paypal only and go first.   
</div>

<br><br><font size=1 color=white><p align="center">Any Problems Contact Reevez!</b></p>
</td>
  </tr>
</table>
</body>
</html>

</form>

</form> 

</html>

 

Hope this could help anyone help me :)

Hi there mate i see it working now i think.

 

I want to stress that frames is a bad way off designing any project.

 

Can you think off another way like good old css or templates in html/php

 

Noticed that frames are very hard in Google to get a good ranking/postion

 

Have a quick look at this quick php/html web site page simple but effective.

 

must give you a better idea then all them frames.

<?php

$link=array("User Info"=>"cmd=a","Message Info"=>"cmd=b","Game Info"=>"cmd=d","Stats"=>"cmd=e","Personal Info"=>"cmd=f","Activety"=>"cmd=g");

echo"<table border='4'><tr><td>";

foreach($link as $names=>$links){

echo " <a href='".$_SERVER['PHP_SELF']."?$links'>$names</a><br>";
}

echo "</td><td>";

switch($_GET['cmd']){


case "a";

echo "my name is redarrow";

break;

case "b";

echo "message to redarrow";

break;
case "c";

   echo "redarrow playing a game";

break;
case "d";

echo "my name is redarrow";

break;
case "e";

echo "redarrow stats are good....";

break;

case "f";

       echo "redarrow real name is john";

break;

case "g";

echo "Welcome to my grate web site!";

default;

}

echo"</td></tr></table>";

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.