- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
<?
function q($q){
return mysql_query($q);
}
function fa($q){
return mysql_fetch_array($q);
}
function nr($q){
return mysql_num_rows($q);
}
function gr($t,$f,$w,$wf,$def){
$r = ($a = mysql_fetch_array(mysql_query("SELECT $f FROM $t WHERE $wf = '$w' LIMIT 1"))) ? $a[$f] : $def ;
return $r;
}
?>
guest 30.06.2009 14:32 # 0
guest 04.07.2009 00:02 # 0
$t,$f,$w,$wf,$def,q,fa,nr - все просто и понятно
guest 05.07.2009 20:39 # 0
guest 06.07.2009 21:55 # +1
guest 11.08.2009 03:42 # 0