0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

中古ノート、買ってみた。 その13

Posted at

概要

中古ノート買ってみた。
wsl1、入れてみた。
ubuntu18.04 、入れてみた。
apache2,php,sqlite、入れてみた。
phpフレームワーク、cheetanを見つけたので、やってみた。

写真

image.png

サンプルコード

<?php
	require_once 'cheetan.php';
	function action(&$c) {
		$c->set('datas', array (array ('id' => 1, 'name' => '山田孝雄', 'age' => '12', 'r_time' => '2025/05/01 13:45')));
	}
?>
<h1>hello2</h1>
<p>
<a href="./create.php">Write new</a>
</p>
<table border="1" width="98%">
	<tr>
	<td>id</td>
	<td>name</td>
	<td>age</td>
	<td>r_time</td>
	<td>edit/del</td>
	</tr>
<?php
	foreach ($data["datas"] as $data)
	{
?>
	<tr>
	<td><?php print $data["id"]; ?></td>
	<td><?php print $data["name"]; ?></td>
	<td><?php print $data["age"]; ?></td>
	<td><?php print $data["r_time"]; ?></td>
	<td>
		<a href="./update.php?id=<?php print $data["id"]; ?>">Edit</a>&nbsp;
		<a href="./delete.php?id=<?php print $data["id"]; ?>">Del</a>
	</td>
	</tr>
<?php
	}
?>
</table>



以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?