This is the new select statement:
echo $user."=Userid<br>";
$result=dbquery("SELECT purit.purchaseid, purit.pkgid, pkgit.playid, pk.gamestart, pur.*, pl.playid FROM purchase_items AS purit, pkg_items AS pkgit, purchase AS pur, plays as pl, picks AS pk WHERE purit.purchaseid=pur.purchaseid and purit.pkgid=pkgit.pkgid and pkgit.playid=pl.playid and pk.playid=pl.playid and pur.userid='$user'");
while($row=mysql_fetch_array($result))
{
echo $row['pk.gamestart']."=Gamestart.<br>";
}
My output is:
11=Userid
=Gamestart.
=Gamestart.
=Gamestart.
=Gamestart.
=Gamestart.
=Gamestart.
=Gamestart.
When I run this directly into phpMyAdmin I substitute the value of $user and get the correct output (I have files I know meet the criteria)
Why can't I echo this within the script?