Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function valores_sorvete_para_banco($sabor_sorvete,$ultimo){
- $id_sabor = null; /** ve se vai ser necessario retiar isso na função **/
- for($cont= 0; $cont<count($sabor_sorvete);$cont++)
- {
- $id_sabor.= "('$ultimo','" .$sabor_sorvete[$cont]. "')," ;
- }
- $cont_char = (strlen($id_sabor));
- $cont_char = $cont_char - 1;
- $id_sabor[$cont_char] = " ";
- return $id_sabor;
- }
- function pegar_ultimo_id_incricao (){
- $id_maximo_inscricao = mysql_query("SELECT * FROM ins_inscricao order by id_inscricao desc limit 1");
- $row = mysql_fetch_array($id_maximo_inscricao);
- $resultado = $row['id_inscricao'];
- return $resultado;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement