//echo " post agree " . $user->post_look_agree; if (!empty($_SESSION['adm_no'])) { #can edit } else if ($mno == 136 ) { $mc->save_current_page_visited( 'post-look-upload' ); //$mc->go('login'); } $_SESSION['post_a_look_is_look_upload_once_in_db'] = false; echo " this is is to be edited look = ".tobe_edite_look_id().'<br>'; if( is_edit_look( tobe_edite_look_id() ) ) { // echo "edite look"; $plno=tobe_edite_look_id(); $pl_info=$mc->posted_look_info($plno); // print_r($pl_info); // echo 'lnmae '.$pl_info['lookName'].' ldesc'.$pl_info['lookAbout']; // echo " total tags = ".count($pl_info['pltags']); // for ($i=0; $i < count($pl_info['pltags']) ; $i++) { // $pl_info[$i][] // echo " pltags = "; // } $lookAbout = $pl_info['lookAbout']; $pltags = $pl_info['pltags']; $lookName = $pl_info['lookName']; $occasion = $pl_info['occasion']; $season = $pl_info['season']; $style = $pl_info['style']; $article_link = $pl_info['article_link'];
function is_edit_look($pnlo) { if (tobe_edite_look_id() != 0) { return true; } else { return false; } }