Jump to content

valores checbox de tabela sql e mostrar


marciofilipee
 Share

Recommended Posts

Boas tenho uma tabela sql com checkbox que mosta valores de sql como nome morada e emal o codigo da checkbox esta assim

   </a>
   <input type="checkbox" name="print[]" value="<?php echo $row["id"]; ?>" >
   </td>

e a pagina que recebe o valor selecionado estacom os dados mysqlconnect e esta assim

<?php
$limite=count($_POST['print']);
for($i=0;$i<$limite;$i++){
$sql="SELECT * FROM d3 WHERE id = '$id'";$result=mysql_query($sql);$rows=mysql_fetch_array($result);
echo $rows["nqm"];}

$rows=mysql_fetch_array($result);
for($i=0;$i<$limite;$i++){$rows=mysql_fetch_array($result);echo '$nome'

mostra tudo em branco gostaria de ajuda

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.