here is a problem i keep running into i do a simple sql query to get soem values from my database..
$vincheck = "select * from vin where vin = $_POST[vin]";
$check_result = mysql_query($vincheck,$conn) or die(mysql_error());
i then access this information like this
$temp = mysql_fetch_row($check_result);
$_SESSION[customer_id] = $temp;
This works fine but what i really want, is instead of using $temp i want it to be the vale from the table so it's easier to understand and also not depedant on the table structure.
so i tried replacing $temp with $temp[currentownerID] and i can never get this to work..
currentownerID is the 6th row in the table (rember counting starts at 0)
-Thanks in advance for any help-