1

This is my config file . i have defined all things which i will using in my pages

<?php 
define("CONFIG","true");
define("DB_HOST", "localhost");
define("DB_USER", "root");
define("DB_PASS", "");
define("DB_NAME", "test");
define("TABLE_NAME", "test1");
define("pFix", "");
define("USERNAME", "admin");
define("PASSWORD", "123");
        ?>

There are 3 tables in my database ie test1 , measures and nish . I want to use measures and nish in my join query with test1 but i have not defined measures and nish in the config file .how will i check how manay tables are there in my database and if want to use 2 tables or 3 tables how will i select them

4

1 回答 1

0

如果您从以下位置更改代码,则可以解决您的问题:

<input type="text" name="id" value="<?= $e[$i][$colnams[$ii]]?>">

至:

<input type="text" name="id[]" value="<?= $e[$i][$colnams[$ii]]?>">

进行此更改后,您将收到作为数组的值。

于 2013-07-04T14:59:52.890 回答