$BuID= mysql_real_escape_string($_POST['buID']);
$uID= mysql_real_escape_string($_POST['uID']);
$Vn = mysql_query("SELECT id, full_name FROM users WHERE id = '$BuID'");
$vc = mysql_fetch_array($Vn);
$U = mysql_query("SELECT id, full_name FROM users WHERE id = '$uID'"); // WORKS FINE
$showU = mysql_fetch_array($U); // WORKS FINE
The $U/$showU
is similiar to the $Vn
, $vc
above, i have no idea why it wont echo out $vc["id"]
and $vc["full_name"]
, when it do it perfectly with the $U
.
echo "<a href='profil.php?id=".$vc[id]."'>e".$vc["full_name"]."</a>"; // Doesnt work
echo "<a href='profil.php?id=".$showU[id]."'>".$showU["full_name"]."</a>"; // Works