PHP глюк:
вот такой трабл://index.php$k"; $rows=$disk->add_odbc_Discuss($conn_id,$HTTP_POST_VARS['usr'],$ HTTP_POST_VARS['txt'],$link); $disk->showall_lines($conn_id,$rows,$link);odbc_close($conn_id);$file="index.php?link=".$link;echo "";require ($FooterFile);?>//CChat.php";$sql_string="select * from f_chat where Discuss_ID=".$d_id;$rez_id=odbc_exec($conn_id,$sql_string);for($i=0;$i".odbc_result($rez_id,4)." ".odbc_result($r ez_id,3)." ";}odbc_free_result($rez_id);$tbl=$tbl."";echo($tbl);}function get_chat_name(&$d_id){echo($d_id);$sql_string="select * from f_discuss";$rez_id=odbc_exec($conn_id,$sql_string);$k=odbc_result($rez_id,3);odbc_free_result($rez_id);return $k;}}?>tak rabotaet otlichno, a vot esli v index.php meniaiu vmesto:{$sql_string="select * from f_discuss where Dicuss_ID=".$link;$rez_id=odbc_exec($conn_id,$sql_string);$k=odbc_result($rez_id,3);}eto:$k=$disk->get_chat_name($link);poyavlyaetsya vot eti oshibki:Supplied argument is not a valid ODBC-Link resource in CChat.php on line 42Supplied argument is not a valid ODBC result resource in CChat.php on line 43Supplied argument is not a valid ODBC result resource in CChat.php on line 44a vot ostal'nyie funktii class-a rabotayut bez problemVopross: pochemu pervye 2 functii rabotayut a 3 net?