include "./inc_top.html"; @extract($_GET); ?> $dbcon = OCILogon("khmc", "Kyunghee!1971", "khmcwdb" ,"AL32UTF8"); $wsql.= "WHERE 1=1 "; switch ( $table ) { case "cartoon" : $title_msg = "만화로 보는 의학상식70"; break; case "cartoon3" : $title_msg = "만화로 읽는 치과상식33"; break; case "cartoon1" : $title_msg = "만화동의보감-치료편"; break; case "cartoon2" : $title_msg = "만화동의보감-약재편"; break; default : $table = "cartoon"; $title_msg = "만화로 보는 의학상식70"; break; } if( $sort == "dept" ) { $worder = "email"; } else { $worder = "title"; } $stid = OCIParse($dbcon, " SELECT * FROM {$table} a where (disp is null or disp='') ORDER BY $worder ASC "); OCIExecute($stid); ?>