Jump to content

[SOLVED] Error displaying records


nitation

Recommended Posts

Hello people,

 

I am working from my admin area. What am trying to do is to display user's information into a table. The information to be displayed is the user's total balance. Have a look at my code. This code is displaying the same information for all users. But i want it for a specific user only.

 

<?php 

			$sqluser2=mysql_query("select SUM(amount) AS Total FROM activity_table where status=1 ") ;
                if (!empty($sqluser2)){
			$numuser=mysql_num_rows($sqluser2);
		    while($row=mysql_fetch_array($sqluser2)){
		    $total=$row["Total"];
			}
			}


		  ?>

How do i go about it.

Thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/115089-solved-error-displaying-records/
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.