Jump to content

[SOLVED] user display problem


S A N T A

Recommended Posts

ok so i am trying to display all the users and heir emails that have registered on my site BUT i cant seem to get them in a table

 

the table needs to be border 1 but i cant get it for some reason

 

<?php
  
  $sql = "SELECT * FROM `users`";
  $result = mysql_query($sql)or die(mysql_error());
  while($row = mysql_fetch_assoc($result))
  {

  echo "<table border="1"><tr><td> " . $row['username'] . " </td><td> "; <----- that is line 21
  echo " " . $row['email'] . "</td></tr><br /><br />";

  
  }
?>

 

but i get the error

 

Parse error: parse error, unexpected T_LNUMBER, expecting ',' or ';' in userdisplay.php on line 21

Link to comment
https://forums.phpfreaks.com/topic/106336-solved-user-display-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.