using iframes to display datbase enterys

View previous topic View next topic Go down

using iframes to display datbase enterys

Post by jamied_uk on 2nd March 2012, 16:44

Code:
<? require ("tracker.php");

?>

<head>
<basefont color="red" size="5" />
<style>
{width:100%;border:1px #444444 solid;background-color:}
H3 {margin-top:0px;font:bold 12pt '';color:#ff4444}
TD {font:normal 10pt '';color:#ff4444}
A {color:#444444}
</style>
</head>

<center>
<font color="orange" font size="+1">

<?php
include 'dbc.php';
?>

 

<title>J~Net Balance Accounts</title>
 <?php session_start();
 $id = $_SESSION['user_id'];
$_SESSION['user_id']= $id; 
      $_SESSION['user_name'] = $full_name;
      $_SESSION['user_level'] = $user_level;
      $_SESSION['HTTP_USER_AGENT'] = md5($_SERVER['HTTP_USER_AGENT']);
      $_SESSION['session_name'] = $user_name;
      $_SESSION['balance']= $balance;
 // Connects to your Database
 mysql_connect("localhost", "root", "") or die(mysql_error());
 mysql_select_db("messages") or die(mysql_error());
 $data = mysql_query("SELECT * FROM users where id = $id")
 or die(mysql_error());
 echo "<table border cellpadding=3>";
 while($info = mysql_fetch_array( $data ))
{
 echo "<tr>";
 echo " <td>".$info['user_name'] . "</td> ";
 }
 echo "</table>";
 
 ?>
 <font size="3" color="red"> </font>
<body style="background:#55555555">
avatar
jamied_uk
Admin

Posts : 2289
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum