- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
class Klon
{
var $clone_id = "";
var $parent_id = "";
var $partner_id = "";
//... и т.д.
}
//...
global $klon;
$klon = new Klon;
//...
function getKlon($klon,$uid)
{
$result = sql_cmd("SELECT * FROM clone WHERE clone_id = '$uid'");
$row = mysql_fetch_array($result);
$klon->clone_id = $row["clone_id"];
$klon->parent_id = $row["parent_id"];
// ... и т.д.
return $klon;
}
guest 13.05.2009 19:57 # 0
denis 10.09.2009 16:19 # 0