I am fairly new to programming in PHP. Most of my skills lay with ASP and Flash, but in this case, I must use PHP to access a database. The database is MS Access, which provides the portability we require. Anyway, I'm simply trying to store retrieved information into an array, then pull up selected information as I need it. With that selected information, I'll be accessing the database again to retrieve all data pertinent to that "user" and displaying the results in a table as I see fit. My problem is getting the information....well actually, my problem is everthing. I can't seem to get past retrieving my query and storing in an array then pulling that information.
Secondly, I'm trying to use functions to call the db access script. I'm having problems identifying the global variables, although I thought I'd done it. Any help would be great. I know there are some syntax issues that I could avoid, such as the concanting of strings to variables, but I'm so use to it that it is hard to stop.
$db = realpath("dbase/tracker.mdb");
$db_conn = new COM('ADODB.Connection');
$strSQL = "SELECT * FROM users WHERE username='". $username ."'";
$rs = $db_conn->Execute($strSQL);
$userdata = $rs;
echo("<td>Logged As: $userdata['firstname'] $userdata['lastname']</td>");
//Later on I'm going to populate different dropdown fields with information based on the particular column name