|
Posted by Chad Lupkes on 07/19/05 06:17
Hoping someone can help me here. It's a simple question, but I'm just not
getting it.
I have two files:
<?php
$precinct = array (
array ( number=>2324,
centerlat=>-122.31705665588379,
centerlong=>47.710367959402525,
etc...
<?php
include ("precinctdata.php");
$filename = $_GET['id'];
$number = $precinct[filename-1][number];
etc...
I want to assign the value of "2324" to the variable $number. I've done
this with arrays that start with number=>1, 2, 3, etc., but not successfully
with specific values.
What am I missing?
--
Chad Lupkes
chadlupkes@gmail.com
http://www.seattlewebcrafters.com/
Navigation:
[Reply to this message]
|