Professional-PHP

[Prev] Thread [Next]  |  [Prev] Date [Next]

[Pro. PHP Dev.] System of question and answer style of the ebay Egipicio Mon Jun 22 05:03:10 2009

This being a system of question and answer style of the ebay seller
that you ask for it i answered your question ...

I started to do more to this list when you are repeating the question
response in db ...

should select the error ... arum most do not know that ... or the
logic is wrong could someone help me??

code ...

<?php
$qr = "SELECT * FROM horto_fazerpergunta,horto_fazerperguntaResposta
WHERE idproduto_fazerpergunta = '$busca' AND
idproduto_fazerperguntaResposta = '$busca' ORDER BY
horariodia_fazerpergunta DESC ";
$sql = mysql_query($qr) or die (mysql_error());
$tudo = mysql_num_rows($sql);

while ($registro = mysql_fetch_array($sql)) {

//banco de dados pergunta
  $horariodia_fazerpergunta = "$registro[horariodia_fazerpergunta]";
  $pergunta_fazerpergunta = "$registro[pergunta_fazerpergunta]";
  $compara_fazerpergunta = "$registro[compara_fazerpergunta]";
  $id_fazerpergunta = "$registro[id_fazerpergunta]";
//banco de dados resposta
  $nomevendedor = "$registro[nome_fazerperguntaResposta]";
  $respostavendedor = "$registro[resposta_fazerperguntaResposta]";
  $idpergunta = "$registro[idpergunta_fazerperguntaResposta]";
  ?>

  <br>
   <table width="740" height="43" border="1" cellpadding="0"
cellspacing="0" class="azul">
    <tr>
      <td width="79" height="19" colspan="2">Hora: <?php echo
$horariodia_fazerpergunta;?></td>
    </tr>
    <tr>
      <td width="79">Question:</td>
      <td width="409"><?php echo $pergunta_fazerpergunta;?></td>
    </tr>
    <tr>
    <?php if ($id_fazerpergunta == $idpergunta){ ?>
      <td>answer :</td>
      <td><?php echo $respostavendedor;?></td>
    <?php } ?>
    </tr>
  </table>

  <?php } ?>


--~--~---------~--~----~------------~-------~--~----~
This group is managed and maintained by the development staff at 360 PSG. An 
enterprise application development company utilizing open-source technologies 
for todays small-to-medium size businesses.

For information or project assistance please visit :
http://www.360psg.com

You received this message because you are subscribed to the Google Groups 
"Professional PHP Developers" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---