Ir para conteúdo
Fórum Script Brasil

Pesquisar na Comunidade

Mostrando resultados para as tags ''selct''.

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • Programação & Desenvolvimento
    • ASP
    • PHP
    • .NET
    • Java
    • C, C++
    • Delphi, Kylix
    • Lógica de Programação
    • Mobile
    • Visual Basic
    • Outras Linguagens de Programação
  • WEB
    • HTML, XHTML, CSS
    • Ajax, JavaScript, XML, DOM
    • Editores
  • Arte & Design
    • Corel Draw
    • Fireworks
    • Flash & ActionScript
    • Photoshop
    • Outros Programas de Arte e Design
  • Sistemas Operacionais
    • Microsoft Windows
    • GNU/Linux
    • Outros Sistemas Operacionais
  • Softwares, Hardwares e Redes
    • Microsoft Office
    • Softwares Livres
    • Outros Softwares
    • Hardware
    • Redes
  • Banco de Dados
    • Access
    • MySQL
    • PostgreSQL
    • SQL Server
    • Demais Bancos
  • Segurança e Malwares
    • Segurança
    • Remoção De Malwares
  • Empregos
    • Vagas Efetivas
    • Vagas para Estágios
    • Oportunidades para Freelances
  • Negócios & Oportunidades
    • Classificados & Serviços
    • Eventos
  • Geral
    • Avaliações de Trabalhos
    • Links
    • Outros Assuntos
    • Entretenimento
  • Script Brasil
    • Novidades e Anúncios Script Brasil
    • Mercado Livre / Mercado Sócios
    • Sugestões e Críticas
    • Apresentações

Encontrar resultados em...

Encontrar resultados que...


Data de Criação

  • Início

    FIM


Data de Atualização

  • Início

    FIM


Filtrar pelo número de...

Data de Registro

  • Início

    FIM


Grupo


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Encontrado 1 registro

  1. web_charles

    Problemas com SQL

    Eu tenho uma tabela em html que tá realizando o select de duas outras tabelas uma professor e a outra frases, criei uma outra tabela no musql para gravar os dados do formulario html tipo radio. O que preciso é gravar na tabela voto o voto desse radio, no professor e frase sequente. Segue o codigo: <form action="cadastrar.php" method="post"> <table width="100%" border="1"> <tr> <td width="5%" class="frases" >PROFESSOR(A)</td> <?php //consulta sql $query = mysql_query("SELECT * FROM frases ORDER BY id") or die(mysql_error()); //faz um looping e cria um array com os campos da consulta while($array = mysql_fetch_array($query)) { //mostra na tela o nome e a data de nascimento echo '<td width="23%" class="frases">'.$array['texto'].' </td> '; } ?> </tr> <?php //consulta sql $query = mysql_query("SELECT * FROM professor ORDER BY id") or die(mysql_error()); //faz um looping e cria um array com os campos da consulta while($array = mysql_fetch_array($query)) { ?> <tr> <?php echo'<td class="frases"><strong>'.$array['nome'].'</strong> <td> 1<input name="criterio" type="radio" value="1" /> 2<input name="criterio" type="radio" value="2" /> 3<input name="criterio" type="radio" value="3" /> 4<input name="criterio" type="radio" value="4" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> <td> 1<input name="criterio" type="radio" value="1" /> 2<input name="criterio" type="radio" value="2" /> 3<input name="criterio" type="radio" value="3" /> 4<input name="criterio" type="radio" value="4" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> <td> 1<input name="criterio" type="radio" value="1" /> 2<input name="criterio" type="radio" value="2" /> 3<input name="criterio" type="radio" value="3" /> 4<input name="criterio" type="radio" value="4" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> <td> 1<input name="criterio" type="radio" value="1" /> 2<input name="criterio" type="radio" value="2" /> 3<input name="criterio" type="radio" value="3" /> 4<input name="criterio" type="radio" value="4" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> <td> 1<input name="criterio" type="radio" value="1" /> 2<input name="criterio" type="radio" value="2" /> 3<input name="criterio" type="radio" value="3" /> 4<input name="criterio" type="radio" value="4" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> <td> 1<input name="criterio" type="radio" value="1" /> 2<input name="criterio" type="radio" value="2" /> 3<input name="criterio" type="radio" value="3" /> 4<input name="criterio" type="radio" value="4" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> <td> 1<input name="criterio" type="radio" value="1" /> 2<input name="criterio" type="radio" value="2" /> 3<input name="criterio" type="radio" value="3" /> 4<input name="criterio" type="radio" value="4" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> <td> 1<input name="criterio" type="radio" value="1" /> 2<input name="criterio" type="radio" value="2" /> 3<input name="criterio" type="radio" value="3" /> 4<input name="criterio" type="radio" value="4" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> <td> 1<input name="criterio" type="radio" value="1" /> 2<input name="criterio" type="radio" value="2" /> 3<input name="criterio" type="radio" value="3" /> 4<input name="criterio" type="radio" value="4" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> <td> 1<input name="criterio" type="radio" value="1" /> 2<input name="criterio" type="radio" value="2" /> 3<input name="criterio" type="radio" value="3" /> 4<input name="criterio" type="radio" value="4" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> <td> 1<input name="criterio" type="radio" value="1" /> 2<input name="criterio" type="radio" value="2" /> 3<input name="criterio" type="radio" value="3" /> 4<input name="criterio" type="radio" value="4" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> </td>'; } ?> </table>
×
×
  • Criar Novo...