[Firebug-cvs] firebug/web db_create.php,1.5,1.6 table_select.php,1.4,1.5
Brought to you by:
doolin
From: <che...@us...> - 2003-05-22 21:48:48
|
Update of /cvsroot/firebug/firebug/web In directory sc8-pr-cvs1:/tmp/cvs-serv15181 Modified Files: db_create.php table_select.php Log Message: fix the global variable bug. Index: db_create.php =================================================================== RCS file: /cvsroot/firebug/firebug/web/db_create.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** db_create.php 21 May 2003 21:58:15 -0000 1.5 --- db_create.php 22 May 2003 21:48:45 -0000 1.6 *************** *** 56,59 **** --- 56,60 ---- print "<br />"; print $statement; + mysql_query($statement) or die("Error: ".mysql_error()." in inserting current atable"); } ?> Index: table_select.php =================================================================== RCS file: /cvsroot/firebug/firebug/web/table_select.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** table_select.php 15 May 2003 23:46:34 -0000 1.4 --- table_select.php 22 May 2003 21:48:45 -0000 1.5 *************** *** 1,4 **** --- 1,6 ---- <?php> session_start(); + session_register("dbname"); + session_register("tblname"); ?> *************** *** 29,39 **** <?php ! session_register("dbname"); ! session_register("tblname"); ! ! if (!isset($HTTP_SESSION_VARS["tblname"])) { ! $HTTP_SESSION_VARS["tblname"] = $HTTP_POST_VARS["tbl1"]; ! $HTTP_SESSION_VARS["dbname"] = $HTTP_POST_VARS["db1"]; ! } --- 31,38 ---- <?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"]; } |