PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Goal here is to get the id's then pull the names of each of the id's from a different table. This works great until the result = db->query from within the while loop. When i apply that i only get 1 result, instead of 7 which is how many rows are really in the db.
$result = $db->query("SELECT * FROM users, chains WHERE users.id = chains.id AND users.user_id <> '$user_id'");
Last edited by AbraCadaver on Tue Oct 12, 2010 11:03 am, edited 1 time in total.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.