Jump to content

stuck on a problem . . .


davez

Recommended Posts

Hello world!

            It been a week now, I try to make a code to display the total number of users on my home page.

            I almost succeeded, but I am stuck on a problem.

            The code displays all the 'ID' on the page, and I want only the last 'ID'

 

            Here is the code:

 

 

<?

session_start();

include "config.php";

global $c,$loggedin;

include "data.php";

global $config;

include "funciones.php";

?>

<?

$tabla = mysql_query("SELECT id FROM tb_users");

while ($registro = mysql_fetch_array($tabla))

 

echo "

". $registro["id"] .""

?>

 

 

          Thank You!

          davez

Link to comment
https://forums.phpfreaks.com/topic/245157-stuck-on-a-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.