Example #1
0
            <td>&nbsp;</td>
            <td><a href="about.html">search</a></td>
            <td>&nbsp;</td>
            <td><a href="sort2.php">browse</a></td>
            <td>&nbsp;</td>
            <td><a href="modelling.html">modelling</a></td>
            <td>&nbsp;</td>
            <td><a href="contact.php">contact</a></td>
        </tr>
    </table>
</div>
<div align="center">
<div class="maincontainer" >

<div>
Click on a heading to sort by value
</div>
<p><?php 
//Connection
$global_dbh = mysql_connect('localhost', 'root', '') or die("Unable to connect: " . mysql_error() . "<br>");
$database = mysql_select_db("PICSimulations") or die("Unable to select database<br>");
$table = "Shock";
$page = "sort2";
display_db_table($page, $table, $global_dbh, FALSE, "border='5'");
?>
</p>


</body>
</html>
Example #2
0
        for ($column_num = 0; $column_num < $column_count; $column_num++) {
            print "<TD bgcolor=#404040 align=left>{$row[$column_num]}</TD>\n";
        }
        print "</TR>\n";
    }
    print "</TABLE>\n";
}
?>
	

		
	<table border=0 bordercolor="#404040" width="95%" align=center cellspacing=1>
	  <tr>
	    <td colspan=4 class=main><b class=reg>News for Settlement <?php 
echo "{$setid}";
?>
</b></td>
	  <tr align=left>
		<td class=main2 width="20%" align=left><b class=reg>Date/Time</b></td>
		<td class=main2 align=left><b class=reg width="80%">News</b></td>
		
	  <?php 
display_db_table("user", $var);
?>

<!-- body ends here -->
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
Example #3
0
}
function display_db_table($tablename, $connection, $header_bool, $table_params)
{
    $query_string = "SELECT title, console, xbox_live, last_updated FROM games ORDER BY title ASC";
    display_db_query($query_string, $connection, $header_bool, $table_params);
}
include 'header.php';
?>
<span class="boldmed">This will be updated as I get new games and I am able add them to the database</span><br />
<!-- <a href="http://venomslair.com/crook.php">depth</a> -->
<br />
<span class="boldunder">My Gamer Tag</span><br />
I have added a column that indicates if I play the game on XBOX Live,  if you would like to connect with me, please send a request
for my gamertag through the helpdesk link on the left and I will send it to you.<br />
<br />
<table>
<tr class="table">
<td>
<?php 
//In this example the table name to be displayed is static, but it could be taken from a form
$table = "games";
display_db_table($table, $global_dbh, TRUE, "border='1'");
mysql_close($global_dbh);
?>
</td>
</tr>
</table>
<br />
<br />
<?php 
include 'footer.php';
Example #4
0
        <title>Android ACRA Crash Log Server</title>
        <style type="text/css" title="currentStyle">
            @import "../media/css/page.css";
            @import "../media/css/table.css";
            @import "../media/themes/smoothness/jquery-ui-1.8.4.custom.css";

        </style>
        <script type="text/javascript" language="javascript" src="../media/js/jquery-1.6.1.min.js"></script>
        <script type="text/javascript" language="javascript" src="../media/js/jquery.dataTables.min.js"></script>
        <script type="text/javascript" language="javascript" src="../media/js/dataTablesSettings.js"></script>


    </head>
    <body id="dt_crashLogs">
        <div id="container">
            <div class="full_width big">Android Crash Logs</div>

            <div id="crashlogs">
                <table cellpadding="0" cellspacing="0" border="0" class="display" id="crashTable">
                    <?php 
include "core.php";
$names = array("Version", "Datum", "OS", "Model", "Package", "Stack Trace");
display_db_table($table, $global_dbh, $names);
?>
                </table>
            </div>
            <div class="spacer"></div>

        </div>
    </body>
</html>