• 0
Sign in to follow this  
John Doe

Erro ...

Question

fala galera ...

Olha só , eu fiz arquivo chamado teste.php , com esse conteúdo :

<?
$conn = mysql_connect("XXX","XX","****") OR
die("Base de Dados não encontrada!");
mysql_select_db("netportalwm",$conn);
$str = "SELECT id,usuario FROM cadastro_wmp_usuarios"
$query = mysql_query($str);
while ($array = mysql_fetch_array($query)){
?>
Boa tarde. Seu ip é <b><? echo $REMOTE_ADDR;?></b> .
        <p align="center">Users</p>
<table align="center" border="1" cellspacing="0" width="50%"
bordercolordark="white" bordercolorlight="black">
  <tr>
      <td width="100%" align="center" valign="middle">
          <p>Usuário</p>
      </td>
      <td width="100%" align="center" valign="middle">
          <p>ID</p>
      </td>
  </tr>
  <tr>
      <td width="100%" align="center" valign="middle">
          <p><?php echo $array[usuario]; ?></p>
      </td>
      <td width="100%" align="center" valign="middle">
          <p><?php echo $array[id]; ?></p>
      </td>
  </tr>

</table>
<?
}
?>

E deu o seguinte erro:

Parse error: parse error in /home/webcindario/netportalwm/teste.php on line 6

Vocês poderiam me ajjudar?

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

$str = "SELECT id,usuario FROM cadastro_wmp_usuarios"

faltou ; no final!

Share this post


Link to post
Share on other sites

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.

Sign in to follow this