Add php files
This commit is contained in:
9
modules/EcmProductB2Bs/getModelsBySubCategory.php
Executable file
9
modules/EcmProductB2Bs/getModelsBySubCategory.php
Executable file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$result = $GLOBALS['db']->query("select * from ecmproductmodels where deleted='0' and parent_id='".$_REQUEST['id']."'");
|
||||
$sm='<select name="models[]" multiple id="models" sieze="6">';
|
||||
while($row=$GLOBALS['db']->fetchByAssoc($result)){
|
||||
$sm.='<option value="'.$row['id'].'">'.$row['name'].'</option>';
|
||||
}
|
||||
$sm.='</select>';
|
||||
echo $sm;
|
||||
?>
|
||||
Reference in New Issue
Block a user