Jump to content
Fórum Script Brasil
  • 0

MATRIZ MULTI-DIMENSIONAL


WbrunoC
 Share

Question

Senhores,

Tenho o seguinte código:                     
Não consigo recuperar o valor  do input type ="hydden" que é a váriavel 'aca_item_def'

<?php             								              		
	$sql = ("SELECT * FROM tab_esp_aca WHERE aca_cod_aca like '$codi_aca' ORDER BY aca_ordem"); 
  	$query = mysql_query($sql);                	                     	            		  					  					     					     				  										         		             		             		          while($row= mysql_fetch_array($query)){                		          		            		           			
?>

<?=$row[aca_item_anal_def]?> 																																																			
<input type="hidden" 			name='def[aca_item_def][]'	value="<?php echo $aca_item_def;?>" />	
<input type="text" 				name='def[0][]' 			size="4" 	maxlength="2" />
<input type="text" 				name='def[0][]'				size="10" 	maxlength="20" />		

Matriz a ser gerada:

aca_item_def      valor1a        valor1b

aca_item_def      valor2a        valor2b

aca_item_def      valor3a        valor 3b

etc...

Necessito recuperar o valor da váriavel  'aca_item_def' para posteriormente gravar em MySQL.

Agradeço qualquer ajuda.

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Forum Statistics

    • Total Topics
      149.6k
    • Total Posts
      646.2k
×
×
  • Create New...