getting closer, I have my table in php and I have an arrays in an array.
However I just don't know how to pull my value out of the array. I have a variable set in the http://www.schoolconceptsinc.com/test.php?item=item1. This was working when I had it set up in case statements, and now I have no clue how to link it to my array and put it into the correct place.
Heres some of my code:
$arritem = $_GET['item'];
$one=$_GET['item=item1'];
$two=$_GET['item=item2'];
$three=$_GET['item=item3'];
$four=$_GET['item=item4'];
$five=$_GET['item=item5'];
$arritem = array(
$arritem[$one] => array(
$bitem=> "AER46",
$descp=> "easel",
$htitle=> "Adjustable Easel with Rack",
$price=> "155.00",
$lbs=>"135",
$mpic=>"/products/easel_rack.jpg"
),
$arritem[$two] => array(
$bitem=> "AER46","AER48",
$descp=> '46" easel','48" easel',
$htitle=> "Adjustable Easel with Rack",
$price=> "155.00","185.00",
$lbs=>"135","146",
$mpic=>"/products/easel_rack.jpg"
),
and so on..........
function mytable(){
echo '<td><p>';
// this is where I need to put the value $bitem
echo '</p></td>
<td><p> </p></td>
<td><p> lbs. </p></td>
<td> </td>
<td><p>$ </p></td>
<td><input type="submit" value="Buy!" ></td>';
}
I am just stuck on this fact and I have a feeling that I am going to get stuck on the if statement so that I can make multipule tables when I have more than one value, but that a question for another time. Right now I at a loss for what to do.
Thanks all.