10/31/08

multi input



....


Nếu form method của bạn là "post" thì $_POST['name'] sẻ là một array.
Bạn có thể dùng:
var_dump($_POST['name']);
để xem trong này chứa cái gì.

10/29/08

Dwoo khắc tinh của Smatty

http://wiki.dwoo.org/index.php/GettingStarted

Using Dwoo with loops - Blog example

Let's assume you are looping over multiple articles of a blog that you want to display, here is what you can do to do it as lightly as possible :

You first have to create an "article.tpl" template file, the name doesn't matter really it's up to you, here is what goes in :


{$title}


{$content}

You will then use this template to render all the articles.

include 'path/to/dwooAutoload.php';

$dwoo = new Dwoo();
// Load the "article" template
$tpl = new Dwoo_Template_File('path/to/article.tpl');

// Retrieve your data using whatever means you use
$articles = getMyArticles();

// Loop over them
foreach($articles as $article) {
// Output each article using their data (assuming it is an
// associative array containing "title", "content", "author"
// and "date" keys)
$dwoo->output($tpl, $article);
}

10/28/08

Đầu số mới cho điện thoại cố định

Tổng kết việc thêm mă số khi gọi diện thoại : nếu bắt dầu của dăy số dt là
5,6,7,8,9 thì phải thêm số 3 trên dầu số
20,21,22,23,24 thì thêm số 2
25,26,27,28,29 thì thêm số 6
30 thì thêm số 7
40,41,42,43,44 thì thêm số 5
45 thì thêm số 4
Từ 26/10/08 Send di cho mọi ng dỡ bị nhầm khi gọi diện thoại

Những thương hiệu hàng đầu