Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/10/2005, 16:56
SOFIA_ME_GUSTA
 
Fecha de Ingreso: octubre-2005
Mensajes: 365
Antigüedad: 18 años, 6 meses
Puntos: 0
Gracias, quizás se me esté escapando algo, aquí todo el code:

Código PHP:
$resultado2 mysql_db_query("mi_base_de_datos","select number from invoice where id=(select Max(id) from 
invoice WHERE number like '$valor')"
); 
while(
$row2 mysql_fetch_array($resultado2)) 
{
$valor2=$row2["number"];
}
$valor3=substr($valor2,0,4);
$valor4=substr($valor2,5,6);
$numerico=1;
$valor5=$valor4 $numerico;
$valor6=$valor3."-".$valor5