1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

PHP I need Help (HTML + PHP)

Discussion in 'Web Development' started by xRazz, Dec 26, 2013.

  1. xRazz

    xRazz New Member

    hey Guys see this code >>>>:


    <!DOCTYPE html>
    <html lang="en">
    <head>

    <meta charset="utf-8" />
    <title>Sword Shine 2D - Maps</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="" />
    <meta name="author" content="" />

    <!-- Le styles -->
    <link href="./css/bootstrap.css" rel="stylesheet" />
    <link href="./css/main.css" rel="stylesheet" />
    <link href="./css/bootstrap-responsive.css" rel="stylesheet" />
    <link href="./css/font-awesome.css" rel="stylesheet" />
    <link rel="stylesheet" href="./layerslider/css/layerslider.css" type="text/css" />
    <link rel="stylesheet" media="screen,projection" href="./css/ui.totop.css" />
    <link rel="stylesheet" href="./css/jquery.fancybox.css?v=2.1.2" type="text/css" media="screen" />
    <link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800,400italic,600italic,700italic" rel="stylesheet" type="text/css" />
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../assets/js/html5shiv.js"></script>
    <![endif]-->

    <!-- Fav and touch icons -->
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://twitter.github.io/bootstrap/assets/ico/apple-touch-icon-144-precomposed.png" />
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://twitter.github.io/bootstrap/assets/ico/apple-touch-icon-114-precomposed.png" />
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://twitter.github.io/bootstrap/assets/ico/apple-touch-icon-72-precomposed.png" />
    <link rel="apple-touch-icon-precomposed" href="http://twitter.github.io/bootstrap/assets/ico/apple-touch-icon-57-precomposed.png" />
    <link rel="shortcut icon" href="./img/favicon.png" />

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
    <body>
    <div id="main_wrapper">

    <div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
    <div class="container">
    <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
    </button>
    <a class="brand" href="./index.html"><font color="Red"><img alt="Sword Shine 2D" src="./img/logo.jpg" /></font></a>
    <div class="nav-collapse collapse">
    <ul class="nav">
    <li class="active"><a href="/swordshine">Home</a></li>
    <li class="dropdown">
    <a href="#misc" class="dropdown-toggle">Miscellaneous <b class="caret"></b></a>
    <ul class="dropdown-menu">
    <li><a href="./news.html">News</a></li>
    <li><a href="./maps.html">Maps</a></li>
    <li><a href="./404.html">404</a></li>
    <li><a href="./prices.html">Prices</a></li>
    <li><a href="#">Top Players</a></li>
    </ul>
    </li>
    <li class="dropdown">
    <a href="./team.html" class="dropdown-toggle">The Team <b class="caret"></b></a>
    <ul class="dropdown-menu">
    <li><a href="./team.html">About the team</a></li>
    </ul>
    </li>
    <li><a href="./game.html">Play Now!</a></li>
    <li><a href="./register.html">Register!</a></li>
    <li><a href="./contact.html">Contact</a></li>
    </ul>
    <form method="get" id="header-searchform" action="#" />
    <input type="text" autocomplete="off" value="" name="s" id="header-s" />
    <input type="submit" id="header-searchsubmit" value="Search" />
    </form>
    </div> <!-- /.nav-collapse -->
    </div>
    </div>
    </div>

    <div class="spacing"></div>

    <div class="main_wrapper">
    <div class="title_wrapper">
    <div class="container">
    <div class="span6"><h1>MAPS</h1> </div>
    <div class="span6 breadcrumbs"><strong><a href="#">Home</a> / Maps</strong></div>
    </div>
    </div>


    <div class="container">
    <div class="row">

    <!-- Boxed style -->

    <div class="span12 block-title centered">
    <h2>Available Maps...</h2>
    </div>
    <br /><br />

    <div class="sixteen columns">

    <?php
    DEFINE("MYSQL_HOST", "localhost");
    DEFINE("MYSQL_USER", "root");
    DEFINE("MYSQL_PASS", "");
    DEFINE("MYSQL_DB", "flashworlds");
    mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS) or die ("Y CANNOT CONNECT NUGGUR");
    mysql_select_db(MYSQL_DB) or die ("Can't connect you bastard");
    $sql = "SELECT * FROM meh_maps LIMIT 1000";
    $result = mysql_query($sql)or die(mysql_error());
    echo "<table>";
    echo "<tr><th>Map name</th><th>PlayersMax</th><th>Map items<th>Monster Tree</th></tr>"; while($row = mysql_fetch_array($result)){ $name = $row['Name'];
    $scale = $row['Exp']; $desc = $row['PlayersMax'] . "<br />"; $scale = $row['monsters_info'] . "<br />";
    $price = $row['monsters_info'] . "<br />";
    $quantity = $row['monster_tree'] . "<br />";
    echo "<tr><td style='width: 200px;'>".$name."</td><td style='width: 600px;'>".$desc."</td><td>".$scale."</td><td>".$price."</td></tr>"; }
    echo "</table>";
    ?>
    </div>

    <div class="span12 block-divider"></div>
    <div class="span12 block-title centered">


    <div class="highlight bgpattern span12">
    <h2>Sword Shine: An epic, functional &amp; amazing MMORPG..</h2>
    <a href="./game.html" class="button-medium pull-right">Play Now!</a>
    <div class="clear"></div>
    </div>

    </div>
    </div> <!-- /container -->
    </div> <!-- /main wrapper -->



    <footer>
    <div class="container">
    <div class="footer_widget span3">
    <h3>Why we rock!</h3>
    <div class="textwidget">
    <p>We are the greatest game Presented by UniBlue, Inc and The xRazz Alliance.</p>
    This MMORPG is based on Violence and Fantasy, Players below 10 Yrs of Age should ask permission for their Parent if They're allowed to play.
    </div>
    </div>
    <div class="footer_widget span3">
    <h3>Tags</h3>
    <div class="tagcloud">
    <a href="./game.html">Game</a>
    <a href="./register.html">Register</a>
    <a href="./about.html">About Us</a>
    </div>
    </div>

    </div><!-- /container -->

    <div class="copyright">
    <div class="container">

    <p>© 2014&nbsp;Made by <a href="#">xRazz Alliance</a></p>

    <div class="social">
    <a class="rss" data-toggle="tooltip" data-original-title="Rss">&nbsp;</a>
    <a class="dribbble" data-toggle="tooltip" data-original-title="Dribbble">&nbsp;</a>
    <a class="vimeo" data-toggle="tooltip" data-original-title="Vimeo">&nbsp;</a>
    <a class="linked-in" data-toggle="tooltip" data-original-title="Linked in">&nbsp;</a>
    <a class="google-plus" data-toggle="tooltip" data-original-title="Google plus">&nbsp;</a>
    <a class="twitter" data-toggle="tooltip" data-original-title="Twitter">&nbsp;</a>
    <a class="facebook" data-toggle="tooltip" data-original-title="Facebook">&nbsp;</a>
    </div>
    </div>
    </div>

    </footer>

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.js"></script>
    <script type="text/javascript" src="./js/bootstrap-transition.js"></script>
    <script type="text/javascript" src="./js/bootstrap-alert.js"></script>
    <script type="text/javascript" src="./js/bootstrap-modal.js"></script>
    <script type="text/javascript" src="./js/bootstrap-dropdown.js"></script>
    <script type="text/javascript" src="./js/bootstrap-scrollspy.js"></script>
    <script type="text/javascript" src="./js/bootstrap-tab.js"></script>
    <script type="text/javascript" src="./js/bootstrap-tooltip.js"></script>
    <script type="text/javascript" src="./js/bootstrap-popover.js"></script>
    <script type="text/javascript" src="./js/bootstrap-button.js"></script>
    <script type="text/javascript" src="./js/bootstrap-collapse.js"></script>
    <script type="text/javascript" src="./js/bootstrap-carousel.js"></script>
    <script type="text/javascript" src="./js/bootstrap-typeahead.js"></script>
    <script type="text/javascript" src="./js/jquery.nicescroll.js"></script>
    <script type="text/javascript" src="./js/easing.js"></script>
    <script type="text/javascript" src="./js/main.js"></script>
    <script type="text/javascript" src="./js/quicksand.js"></script>
    <script type="text/javascript" src="./js/jquery.fancybox.js?v=2.1.3"></script>
    <script type="text/javascript" src="./js/jquery.ui.totop.js"></script>


    <script type="text/javascript">

    jQuery(function ($) {
    $('[data-toggle=tooltip]').tooltip()
    });

    jQuery(document).ready(
    function() {
    $("html").niceScroll({
    cursorcolor:"#2D3032",
    cursoropacitymin:0.3,
    cursoropacitymax:0.5,
    cursorwidth:"10px",
    });
    }
    );

    jQuery(window).scroll(function(){
    if ($(this).scrollTop() > 10){
    // x should be from where you want this to happen from top//
    //make CSS changes here
    $('#layerslider-container-fw').addClass("slires");
    $('.navbar-inner').addClass("conres");
    $('.navbar-inner img').addClass("logores");
    $('.navbar-inner .nav-collapse').addClass("navres");
    $('#header-searchform').addClass("seres");

    }
    else{
    //back to default styles
    $('.navbar-inner').removeClass("conres");
    $('#layerslider-container-fw').addClass("slires");
    $('.navbar-inner img').removeClass("logores");
    $('.navbar-inner .nav-collapse').removeClass("navres");
    $('#header-searchform').removeClass("seres");
    }
    });
    jQuery().UItoTop({ easingType: 'easeOutQuart' });
    </script>

    </div> <!-- / main_wrapper -->
    </body>

    </html>


    The output is not what i expected! See the Pic (The attachment)


    The code that needs to be edited > ::::::::::::::;;

    <?php
    DEFINE("MYSQL_HOST", "localhost");
    DEFINE("MYSQL_USER", "root");
    DEFINE("MYSQL_PASS", "");
    DEFINE("MYSQL_DB", "flashworlds");
    mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS) or die ("Y CANNOT CONNECT NUGGUR");
    mysql_select_db(MYSQL_DB) or die ("Can't connect you bastard");
    $sql = "SELECT * FROM meh_maps LIMIT 1000";
    $result = mysql_query($sql)or die(mysql_error());
    echo "<table>";
    echo "<tr><th>Map name</th><th>PlayersMax</th><th>Map items<th>Monster Tree</th></tr>"; while($row = mysql_fetch_array($result)){ $name = $row['Name'];
    $scale = $row['Exp']; $desc = $row['PlayersMax'] . "<br />"; $scale = $row['monsters_info'] . "<br />";
    $price = $row['monsters_info'] . "<br />";
    $quantity = $row['monster_tree'] . "<br />";
    echo "<tr><td style='width: 200px;'>".$name."</td><td style='width: 600px;'>".$desc."</td><td>".$scale."</td><td>".$price."</td></tr>"; }
    echo "</table>";
    ?>
    </div>
     

    Attached Files:

  2. Mimoun

    Mimoun Administrator Staff Member Director Verified Member

    It's best that you upload your html and css to the forum easier to help out that way.
    We can't help without seeing the followling CSS files:

    Code:
    <link href="./css/bootstrap.css" rel="stylesheet" />
    <link href="./css/main.css" rel="stylesheet" />
    <link href="./css/bootstrap-responsive.css" rel="stylesheet" />
    You can find out what's wrong with your code yourself by using tools like Firebug, if you don't want to upload your CSS files to a public forum.
     
  3. xRazz

    xRazz New Member

    Thanks sir.....btw i need a php Template.....With These page > Home, Staff Team, Game, Sign-Up, Ranking, Fan Page, Maps, Guilds, Quests! Add me in Skype ... user = xrazz.zergon ................................ and then teamviewer me i will show you my SQL file...and make the Template....
     
  4. Mimoun

    Mimoun Administrator Staff Member Director Verified Member

    Sorry I don't have the time to provide free personal support on Skype.
    I don't need to see your SQL to help you out, just your HTML and CSS files.
    Or a public link to your website online will work too.
     
  5. xRazz

    xRazz New Member

    Ok sir
     
  6. xRazz

    xRazz New Member

    Can u just make me That php template....the theme is gaming and the name is Sword Shine....Thank you!
     
  7. alfiya

    alfiya New Member

    i need a php template for family connection