In admin/user.php I have inserted the following code to extract data from a custom table "memberinfo" and display using the makeinputcode() function of vbulletin.
PHP Code:
maketableheader("Memberinfo details TEST (code in: admin/user.php line 308)");
$myquery="SELECT * FROM memberinfo WHERE email='$user[email]'";
$myresult=$DB_site->query_first($myquery);
foreach ($myresult as $mykey=>$pointer){
makeinputcode($mykey,$mykey,$myresult[$mykey]);
}
Problem is I get two rows for each record. What have I done wrong??