Here's a boiled down version of what I'm trying to accomplish. The first database query contains the actual data. The second database query will contain a list of variables that point to the data in the first database.
~$SQLgetName = "SELECT first_name, last_name FROM accounts WHERE account_number like ".$passedID;
~$rsObjQuery=mssql_query($SQLgetName,$connectID);
~$rowSM=mssql_fetch_array($rsObjQuery);
~
~$query="SELECT LastName FROM Questions";
~$resultMY=mysql_query($query);
~$rowMY=mysql_fetch_array($resultMY);
~
~echo ($rowSM['last_name']);
~echo ($rowMY['LastName']);
$rowSM['last_name'] == "Smith"
$rowMY['LastName'] == "$rowSM['last_name]"
How do I get to the value "Smith" from $rowMY['LastName']? Should $rowMY['LastName'] contain something else? Am I taking the completely wrong approach?