internetguy
Technical User
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 "<h1>Users</h1>";
$db = mysql_connect('localhost','root');
mysql_select_db('users');
$query = "SELECT * FROM info LIMIT 30";
$result = mysql_query($query);
$num = mysql_num_rows($result);
for ($i = 0; $i < $num; $i++)
{
}
$row = mysql_result($result,$i,'title');
echo "<br>".$row['url'];
?>
please help, thank you
<?php
echo "<h1>Users</h1>";
$db = mysql_connect('localhost','root');
mysql_select_db('users');
$query = "SELECT * FROM info LIMIT 30";
$result = mysql_query($query);
$num = mysql_num_rows($result);
for ($i = 0; $i < $num; $i++)
{
}
$row = mysql_result($result,$i,'title');
echo "<br>".$row['url'];
?>
please help, thank you