Here's where I am thus far:
$link = mysql_connect($connection, $username, $password) or die(mysql_error());
mysql_select_db($database) or die( "Unable to select database");
$query2 = "SELECT * FROM inventory_temp WHERE VehID='$VehID'";
$result2 = mysql_query($query2) or die(mysql_error());
$nt2 = mysql_fetch_array($result2);
...
echo $nt2[username];
echo $nt2[address];
echo $nt2[city];
What I need to do is access a range of pictures (Picture01 ... Picture10) that are columns in this database, the information for which is stored in the array $nt2.
I've assigned the current picture # (starting at Picture01) to the variable $piccurr, and I'd like to access the array like this: $nt2[$piccurr] ...
However, I get absolutely nothing. Is it possible to reference the array like this, where the contents of the variable in the brackets is the name of the column I need? If so, what is the correct coding process?