function getSectionCategorieModel($sec_id, $cat_id)
 {
     $result = $this->connector->query("SELECT * FROM sectioncategorie WHERE `sec_id` = '{$sec_id}' AND `cat_id` = '{$cat_id}'");
     $row = $this->connector > fetchArray($result);
     if ($result = mysql_query($query)) {
         $sectionCategorie = new SectionCategorie();
         $sectionCategorie->setSec_id($row['sec_id']);
         $sectionCategorie->setCat_id($row['cat_id']);
         return $sectionCategorie;
         //  while($row)
         //  {
         //  echo $result['fname'];
         //  echo " ";
         //  echo $result['lname'];
         //  echo "<br>";
         //  echo $result['info'];
         //  echo "<br>";
         //  echo "<br>";
         //     }
     } else {
         echo mysql_errno($con) . ": " . mysql_error($con) . "\n";
     }
 }
<?php

/**
 * @author asmalindi
 * @copyright 2011
 */
require "CategorieModel.php";
require "SectionModel.php";
require "SectionCategorieModel.php";
$SectionM = new SectionModel();
$CategorieM = new CategorieModel();
$sectionCategorieM = new SectionCategorieModel();
$sectionCategorie = new SectionCategorie();
$categorie = new Categorie();
$Section = new Section();
include "process.php";
if (isset($_POST['submit'])) {
    if (isset($_POST['category']) && isset($_POST['section'])) {
        //echo"Register.. 111111111!";
        $category = $_POST['category'];
        $section = $_POST['section'];
        $sectionCategorie->setCat_id($category);
        $sectionCategorie->setSec_id($section);
        $sectionCategorieM->addNewSectionCategorieeModel($sectionCategorie);
    } else {
        //echo"Register.. 222222222!";
    }
}
?>
<head>
<link href="menu.css" rel="stylesheet" type="text/css" />