Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error showing users in a table

Status
Not open for further replies.

internetguy

Technical User
Nov 22, 2003
57
US
I am having trouble showing a list of users in a database on a page. I have a page where it asks which users to delete, and I want a list to the side to see all the names, but when I try the page it says that it "cannot jump" to the last row in my table, here is my code...

<?php
echo &quot;<h1>Users</h1>&quot;;
$db = mysql_connect('localhost','root');
mysql_select_db('users');
$query = &quot;SELECT * FROM info LIMIT 30&quot;;
$result = mysql_query($query);
$num = mysql_num_rows($result);
for ($i = 0; $i < $num; $i++)
{

}
$row = mysql_result($result,$i,'title');
echo &quot;<br>&quot;.$row['url'];
?>

please help, thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top