本文整理匯總了PHP中Conectar::Insertar_marca方法的典型用法代碼示例。如果您正苦於以下問題:PHP Conectar::Insertar_marca方法的具體用法?PHP Conectar::Insertar_marca怎麽用?PHP Conectar::Insertar_marca使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Conectar
的用法示例。
在下文中一共展示了Conectar::Insertar_marca方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: trim
$codigo = trim($objWorksheet->getCellByColumnAndRow(0, $i)->getValue());
$descrip = utf8_encode(trim($objWorksheet->getCellByColumnAndRow(1, $i)->getValue()));
$marca = utf8_encode(trim($objWorksheet->getCellByColumnAndRow(2, $i)->getValue()));
$refer = utf8_encode(trim($objWorksheet->getCellByColumnAndRow(3, $i)->getValue()));
$precio = $objWorksheet->getCellByColumnAndRow(4, $i)->getValue();
$respon1 = $conecta->Insertar_descripcion($descrip);
if (isset($respon1['last_cod_id'])) {
$codi_desc = $respon1['last_cod_id'];
} else {
$select_desc = 'SELECT Descri_id FROM produc_descripcion_ WHERE Descri_nomb = "' . $descrip . '"';
$busc1 = $conecta->consultas($select_desc);
$codi_desc = $busc1["Descri_id"];
//var_dump($codi_desc);
//echo " descuen ".$codi_desc." ";
}
$respon2 = $conecta->Insertar_marca($marca);
if (isset($respon2['last_cod_id'])) {
$codi_marc = $respon2['last_cod_id'];
} else {
$select_marc = 'SELECT Marca_id FROM produc_marca WHERE Marca_nomb = "' . $marca . '"';
$busc2 = $conecta->consultas($select_marc);
$codi_marc = $busc2["Marca_id"];
//var_dump($codi_marc);
//echo " marca ".$codi_desc." ";
}
$respon3 = $conecta->Insertar_referencia($refer);
if (isset($respon3['last_cod_id'])) {
$codi_refe = $respon3['last_cod_id'];
} else {
$select_refe = 'SELECT Referen_id FROM produc_referencia WHERE Referenc_nomb = "' . $refer . '"';
$busc3 = $conecta->consultas($select_refe);