Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,704 members, 7,816,878 topics. Date: Friday, 03 May 2024 at 07:16 PM

How To Display Downlines, Phpmysql - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / How To Display Downlines, Phpmysql (1371 Views)

Guaranteed Traffic,sign Ups, Leads, Downlines And Sales To Your Blogs, Websites / Pingawork No Referring, No Downlines And Not Hyip Genuine Online Business / Help On How To Display Facebook Share Button On Smf (2) (3) (4)

(1) (Reply) (Go Down)

How To Display Downlines, Phpmysql by pagolina: 7:49pm On Mar 18, 2010
I have a select statement that filter record with where clause like this

<?php
$dlines = mysql_query("SELECT NAME,USER_ID,REF_ID from members WHERE REF_ID='$m_uid'"wink or die(mysql_error());

//the $m_uid is the user id


while($m_row2=mysql_fetch_array($dlines,MYSQL_ASSOC)){
echo "<tr>";
//echo "<td><a href='admin_edit.php?name={$row['NAME']}'>{$row['NAME']}</a></td>";
echo "<td>{$m_row2['NAME']}</td>";
echo "<td>{$m_row2['USER_ID']}</td>";
echo "<td>{$m_row2['REF_ID']}</td>";
$duid =array($m_row2['USER_ID']);
// echo "<td><a href='delete.php?dlet={$row['USER_ID']}'><img src=", /img/jpg/dlete.jpg" width="30" height="30"/></a></td>";
echo "</tr>";
}

this script is working on my system but is not working online WHY?

each other way can i display downlines
Re: How To Display Downlines, Phpmysql by OmniPotens(m): 6:15am On Mar 19, 2010
What is the error it displays while you are online? That is the starting point to your debugging. Is it database version related or your syntax or PHP version? Deal with this first then we proceed from there.
Re: How To Display Downlines, Phpmysql by pagolina: 9:44am On Mar 19, 2010
No error message,
the mysql_num_rows() keep returning 0 (null) while there is record in the database.

other part of the page using the same database and table are working, so i dought if there is any problem with the database
Re: How To Display Downlines, Phpmysql by pagolina: 9:58am On Mar 19, 2010
the new user and the refferal are on the same table.
if there is another way i can display downlines, i.e the new user under the refferral i will also appreciate it
Re: How To Display Downlines, Phpmysql by TechPros(m): 11:25am On Mar 19, 2010
pagolina:

<?php
$dlines = mysql_query("SELECT NAME,USER_ID,REF_ID from members WHERE REF_ID='$m_uid'"wink or die(mysql_error());

//the $m_uid is the user id

did u initialize that variable($m_uid) at all, i mean did u assign a value to it cos i cant see that in ur code.
Re: How To Display Downlines, Phpmysql by Nobody: 1:42pm On Mar 19, 2010
i have had similar problems in the past. One thing i usually do in this scenario is to echo out the MySQL query and enter it into
an online phpmyadmin and see what happens.

$sql = "SELECT NAME,USER_ID,REF_ID from members WHERE REF_ID='$m_uid'";
echo $sql;

(1) (Reply)

. / Business Directory, Classified Ads And Blog Website For Sale / Help Me to Review This Forum

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.