Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从 MySQL SELECT 查询中获取结果并垂直显示?
代替:
Name|Age|Question andrew|25|How are you
我想:
Name| andrew Age| 25 Question| How are you
我不能在 PHP 中做 - syntax error???
syntax error
提前致谢
这里有一些线索给你:
使用 PDO 或 mysqli 获取数据
SELECT * FROM mytable
使用 foreach 循环:
foreach ($item as $key => value){ //Change this part as you wish echo $key."|".$value."<br>"; }
使用css“使其垂直”