Ok on an url like .../test.php?id=4656
im trying to get php to get the value of the id, the id is the MemberID in the database. Then i want to find the record in the database that matches thes MemberID (i.e. 4656) and then find the Username of that record. The username will then be defined by $UplineMember see code below.
Code: Select all
$id = $_GETїid];
$sql = "SELECT Username FROM $sqltable WHERE MemberID='$id'";
$sql_result = mysql_query ($sql, $connection ) or die ('request "Could not execute SQL query - testing "');
list ($UplineMember) = mysql_fetch_row($sql_result);Please help?
Chris Hubble