<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Title here!</title>
</head>
<body>
<?php
include("DBgrid.class.php");
mysql_pconnect("localhost","user","password");
mysql_select_db("dbasename");
$result=mysql_query("select * from table "); //only select statments
$tabla ='width="99%" border="1" cellspacing="0" cellpadding="0" bordercolor="#CCCCCC"';
$titulo ='bgcolor="#9999FF" class="titulotabla" height="20"><font color="#FFFFFF"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1"';
$linea = 'class="textochico"><font color="#999999"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1"';
$grid = new DBgrid($result,$tabla,$titulo,$linea);
?>
</body>
</html>
|