![](/img/trans.png)
[英]How can i print information from one main file txt or php to all content on a website
[英]I have many tables and one main one, how can I take there column names from the main one?
我有一个名为“Call”、“Win”、“Com”的表格,还有许多其他表格,每个区域中的字母是字段名称。 名为“Main”的表具有在其他字段中称为 abc .. 的字段的所有真实名称
Call
id a b c d e f g h i j k l
Win
id a b c d e f g
Com
id a b c d e f g h i j k l m n
Main
id table column header
1 Call a date
2 Call b name
3 Com a date
4 Com b number
5 Call c address
etc...
我的问题是我如何做一个数组,在那里我可以显示一个“呼叫”表,而不是显示为
Call
id a b c d e
它会显示为
Call
id date name address
.... 等等其他领域
也许像
$a array
[1] =>Jas
[2] => 2017
和数组 $b 可以是字段名称
$b array
[1]=> name
[2] => date
类似的东西,我只需要回声 $b
您可以在查询中使用 as 在您的查询中选择 id、a AS 日期、b 呼叫中的 AS 名称,请参阅此链接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.