PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

using iframes to display datbase enterys

Go down

using iframes to display datbase enterys Empty using iframes to display datbase enterys

Post by jamied_uk 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">
jamied_uk
jamied_uk
Admin

Posts : 3020
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

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