我有两个文件:表创建和表插入
一个创建一个包含行的表,另一个将数据插入这些行
我没有在每个文件中编辑行名称/类型,而是尝试包含 rows.php,但出现错误
rows.php 看起来像这样:
Row1 CHAR(15),
Row2 CHAR(15),
Row3 CHAR(15),
**tablecreation.php looks like this:**
$sql = "CREATE TABLE TableTest
(
<?php include 'rows.php'; ?>
)";
**tableinsert.php looks lkike this:**
$sql = "INSERT INTO TableTest
(
<?php include 'rows.php'; ?>
)";