Question on Arrays.
Posted: Tue Jan 27, 2009 3:23 am
Hi everyone,
I'm a learner of PHP.
please help me out on how to define an Associative Array(multidimensional or three dimensional) which will have three values(schemeId, target, destination ).For one schemeId there can be multiple targets and destinations.
And also, In case of database, I'm using the following query to get destination value.
$result = mysql_query("SELECT destination FROM table WHERE shemeId = '$shemeId' AND target = '$alpha'");
now I dont want to use database because of some connection limitations.
so please also tell me, how to get "destination" value from an Associative array.
Thank you very much.
I'm a learner of PHP.
please help me out on how to define an Associative Array(multidimensional or three dimensional) which will have three values(schemeId, target, destination ).For one schemeId there can be multiple targets and destinations.
And also, In case of database, I'm using the following query to get destination value.
$result = mysql_query("SELECT destination FROM table WHERE shemeId = '$shemeId' AND target = '$alpha'");
now I dont want to use database because of some connection limitations.
so please also tell me, how to get "destination" value from an Associative array.
Thank you very much.