|
|
| version 1.27, 2004/03/05 10:00:05 | version 1.73, 2004/12/23 14:40:54 |
|---|---|
| Line 1 | Line 1 |
| $request:charset[koi8-r] | @main[] |
| $response:charset[windows-1251] | |
| $SQL.connect-string[odbc://DSN=nestle^;UID=nestle^;PWD=mbm32^;ClientCharset=windows-1251] | $cH[^cH[]] |
| #$SQL.connect-string[odbc://DSN=theatre_enciclop^;UID=root^;PWD=^;bug=here] | |
| #^bpt[] | ^if($cH.this is "junction"){ |
| ^connect[$SQL.connect-string]{ | $result[^cH.this[$cH.th_par]] |
| ^string:sql{select question from faq}[$.limit(1)] | }{ |
| $result[0] | |
| } | } |
| OK | |
| #################################################################################################################### | |
| @cH[] | |
| $result[ | |
| $.this[$mThis] | |
| $.th_par[ | |
| $.a(2) | |
| $.b(3) | |
| ] | |
| ] | |
| #################################################################################################################### | |
| @mThis[lparams][params] | |
| $params[^hash::create[$lparams]] | |
| $result[^eval($params.a * $params.b)] |