first commit
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
<?php
|
||||
|
||||
$companydet = new WA_MySQLi_RS("companydet",$gprepapp,1);
|
||||
$companydet = new WA_MySQLi_RS("companydet", $repnew, 1);
|
||||
$companydet->setQuery("SELECT * FROM company WHERE company.id=$idcompany");
|
||||
$companydet->execute();
|
||||
|
||||
// Verifica se ci sono risultati
|
||||
if (empty ($companydet->getColumnVal("id"))) {
|
||||
header("Location: insert-mycompany.php");
|
||||
exit;
|
||||
if (empty($companydet->getColumnVal("id"))) {
|
||||
header("Location: insert-mycompany.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
$idcompany=$companydet->getColumnVal("id");
|
||||
$namecompany=$companydet->getColumnVal("company_name");
|
||||
$companyucode=$companydet->getColumnVal("companyucode");
|
||||
$idcompany = $companydet->getColumnVal("id");
|
||||
$namecompany = $companydet->getColumnVal("company_name");
|
||||
$companyucode = $companydet->getColumnVal("companyucode");
|
||||
?>
|
||||
<?php
|
||||
//check active modules
|
||||
$checkmodules = new WA_MySQLi_RS("checkmodules",$gprepapp,0);
|
||||
$checkmodules = new WA_MySQLi_RS("checkmodules", $repnew, 0);
|
||||
$checkmodules->setQuery("SELECT * FROM activemodules LEFT JOIN modules ON activemodules.idmodules=modules.idmodules WHERE activemodules.idcompany=$idcompany AND activemodules.activemod='Y'");
|
||||
$checkmodules->execute();
|
||||
?>
|
||||
@@ -25,10 +25,10 @@ $checkmodules->execute();
|
||||
$activemod = array();
|
||||
|
||||
$wa_startindex = 0;
|
||||
while(!$checkmodules->atEnd()) {
|
||||
while (!$checkmodules->atEnd()) {
|
||||
$wa_startindex = $checkmodules->Index;
|
||||
|
||||
$activemod[] = $checkmodules->getColumnVal("idmodules");;
|
||||
$activemod[] = $checkmodules->getColumnVal("idmodules");;
|
||||
|
||||
$checkmodules->moveNext();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user