Hello,
Could anyone please show me how to access specific items from the array returned from this request:
//Request all info from table
$query = "SELECT * FROM PortfolioItems ";
$wholePortfolioArray = mysql_query($query) or die(mysql_error());
...where the table looks like:
ID MN OX DD
01 YY NN XX
02 YY MM XX
03 NN MM XX
04 NN MN XO
For instance I would like to return just the 'ID' and 'OX' colomns of each row.
I would also like to know how to return the value at ID = 03, colomn 'MN'.
The reason I am doing it like this is because I only want to make the request to the server before the page loads. After that I want to use javascript to sort through the information.
Maybe there is a way to convert the entire array to a javascript array for client side access...?
Thanks very mcuh for any help.
Spencer