本文整理匯總了PHP中Modelo::ultimoIdTabla方法的典型用法代碼示例。如果您正苦於以下問題:PHP Modelo::ultimoIdTabla方法的具體用法?PHP Modelo::ultimoIdTabla怎麽用?PHP Modelo::ultimoIdTabla使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Modelo
的用法示例。
在下文中一共展示了Modelo::ultimoIdTabla方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
foreach ($formulario as $key => $value) {
$posicion = strpos($key, 's2');
if ($posicion !== -1 && $posicion !== FALSE) {
// s2
$thirdTableName = $key;
$ThirdTableKeys = array();
$SQLThirdTableKeys = "DESCRIBE " . $thirdTableName;
foreach ($BD->query($SQLThirdTableKeys) as $ttkeys) {
array_push($ThirdTableKeys, $ttkeys['Field']);
}
foreach ($value as $v) {
//{[0->3][1->12][2->22]}
$selects = array();
$selectValues = array();
$selectValues[$ThirdTableKeys[0]] = 0;
$selectValues[$ThirdTableKeys[1]] = $objetoModelo->ultimoIdTabla($nombreTabla);
$selectValues[$ThirdTableKeys[2]] = $v;
array_push($selects, $selectValues);
$objetoModelo->crear($thirdTableName, $selects);
}
}
}
echo $objetoModelo->ultimoIdTabla($nombreTabla);
} else {
if (strcmp("eliminar", $accion) == 0) {
$modelo = $mensajeControlador->modelo;
$ID = $mensajeControlador->id;
$archivosBorrar = array();
$SQLcamposModelo = "DESCRIBE " . $modelo;
foreach ($BD->query($SQLcamposModelo) as $ttkeys) {
if (strpos($ttkeys['Field'], "fi_name_") === 0) {