Update of /cvsroot/firebug/firebug/web
In directory sc8-pr-cvs1:/tmp/cvs-serv9758
Modified Files:
db_select.php table_select.php
Log Message:
Improvements in web database php script interfaces.
Index: db_select.php
===================================================================
RCS file: /cvsroot/firebug/firebug/web/db_select.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** db_select.php 30 Jul 2003 21:49:39 -0000 1.4
--- db_select.php 30 Jul 2003 22:04:03 -0000 1.5
***************
*** 15,22 ****
<hr />
- <h1>FireBug Tables selected</h1>
! <center>
<form action="table_select.php" method="post">
--- 15,22 ----
<hr />
!
!
<form action="table_select.php" method="post">
***************
*** 27,30 ****
--- 27,37 ----
mysql_connect("localhost","root","") or die("Error: ".mysql_error()." in mysql_connect.");
$dblink=mysql_select_db("$dbname") or die("Error: ".mysql_error()." in mysql_select_db.");
+
+
+
+ print("<h1>Database $dbname tables</h1>");
+
+
+ print("<center>\n");
print("<table class='db_schema'><tr><td>Table Name</td><td>Selected</td></tr>");
***************
*** 53,59 ****
</form>
</center>
! <?php
! echo "Database <strong>$dbname</strong> displayed.";
! ?>
<br />
--- 60,64 ----
</form>
</center>
!
<br />
Index: table_select.php
===================================================================
RCS file: /cvsroot/firebug/firebug/web/table_select.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** table_select.php 10 Jul 2003 09:01:09 -0000 1.7
--- table_select.php 30 Jul 2003 22:04:03 -0000 1.8
***************
*** 16,20 ****
<body>
! <h1>FireBug web client for mote activity</h1>
--- 16,46 ----
<body>
! <?php
! include("nav_footer.php");
! ?>
!
! <hr />
!
! <p>
! Sensor data last updated:
! <?php
! echo date ("l dS F Y h:i:s A");
! ?>
! </p>
!
!
!
! <?php
! //if (!isset($HTTP_SESSION_VARS["tblname"])) {
! if ($HTTP_POST_VARS["tbl1"]!=Null){
! $HTTP_SESSION_VARS["tblname"] = $HTTP_POST_VARS["tbl1"];
! $HTTP_SESSION_VARS["dbname"] = $HTTP_POST_VARS["db1"];
! }
!
! $dbname = $HTTP_SESSION_VARS["dbname"];
! $tblname = $HTTP_SESSION_VARS["tblname"];
!
! print("<h1>Mote activity: Database $dbname, table $tblname</h1>");
! ?>
***************
*** 32,46 ****
<?php
- //if (!isset($HTTP_SESSION_VARS["tblname"])) {
- if ($HTTP_POST_VARS["tbl1"]!=Null){
- $HTTP_SESSION_VARS["tblname"] = $HTTP_POST_VARS["tbl1"];
- $HTTP_SESSION_VARS["dbname"] = $HTTP_POST_VARS["db1"];
- }
-
- $dbname = $HTTP_SESSION_VARS["dbname"];
- $tblname = $HTTP_SESSION_VARS["tblname"];
- print $dbname;
- print $tblname;
-
mysql_connect("localhost","root","") or die("Error: ".mysql_error()." in mysql_connect.");
--- 58,61 ----
|