Caching in Zend Framework is operated by frontends while cache records are stored through
backend adapters (File, Sqlite,
Memcache...) through a flexible system of IDs and tags. Using those, it
is easy to delete specific types of records afterwards (for example: "delete all cache records
marked with a given tag").

First you need to download Zend libraries (Zend Framework 1.12.3 Minimal) from their official site.
Then copy the library folder to “Application/Libraries/” folder
how y can store in my BD Mysql this array:
Ok, let to go:
-Function for insert:
$data = array(
"id" => "1",
"title" => "This my test",
"by"=>"Socheat"
);
ID | TITLE | BY
---------------------------
1 This my test1 SOCHEAT
9 This my test1 SARET
Ok, let to go:
/*Table name*/
$table = "title";
/*Data array to insert*/
$data = array(
"id" => "1",
"title" => "This my test",
"by"=>"Socheat"
);
insert($table, $data);
-Function for insert:
function insert($table, $data)
{
$keys = array();
$values = array();
foreach($data as $key => $value)
{
$keys[] = $key;
$values[] = $value;
}
$check = mysql_query("INSERT INTO $table (".implode(',',$keys).") VALUES('" . implode("', '", $values) . "')");
}
Subscribe to:
Posts (Atom)










