Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • the only thing that shows up now is: Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given current code: $con = db_connect2(); $sql = mysql_query("SELECT info, username, time FROM newsfeed ORDER BY time DESC LIMIT 10"); mysql_select_db('drug_empire',$con); $query = mysql_query($sql,$con); while(($row = mysql_fetch_assoc($query)) != NULL) { echo "<p>User {$row['username']} just registered {$minutes} min ago</p><br />"; ps: how do I get the code field when i post comments? Commented Jun 29, 2010 at 6:10
  • 1
    quit using mysql use mysqli Commented Jul 24, 2017 at 16:19