hey there, NogDog! thanks for your attention.
well-- after looking at this w/ a fresh head, today-- i can totally see why my mulit/dim array wasn't going to do anything-- i'm trying to make a key as a value... or something! i dunno. confused.... (obviously!)
at ths part: $myarray= array('$x','array('all','my','values'..)). but, i guess i'm barking up the wrong tree anyway?
and upon reading your reply, i thought 'Eureka! i'm so dumb, and it's a good thing ND rocks so much!'
'cept, when i plugged it in, i'm getting something totally unexpected,
<ul>
<li>1: 1</li>
<li>2: 2</li>
<li>2: 2</li>
<li>c: c</li>
<li>t: t</li>
<li>t: t</li>
</ul>
(EDIT)the alphabeticals appear to be the first letter of the key's?
and why have we only done one iteration? (by one iteration, i mean-- only one key of the array, only one pass seems to be output, yet there are ten rows?) (end EDIT)
... well, it's not quite what i need... but i should be able to make progress going from this idea... err...
i only wish i had some better mastery / more experience w/ Multidimensional Arrays-- it's something similar to this which caused me to study the whole OOP thing in the first place-- in fact, this very database-- the goal of course being for the end user to select his choice of event date, for which there exists a table (shown above)-- only i'm just stumped on how to get to it. i don't know why i can't 'see' a solution, but i'm really struggling w/ this.
any other input is appreciated. thanks!
EDIT: wait a minute. maybe i didn't quite get what NogDog was trying to tell me. (missed his //comments first time). let's see here....
EDIT-2: here's the method from the object. would it be better to have mysql_fetch_array(str, MYSQL_NUM) instead ?
class mainData {
var $numrows; // tells us how many rows
var $alldata; // the select all info array for print_r
function selectAll($tableall) {
$dbconnect = mysql_connect("secret-stuff-for-db-conn");
$this->allque = "SELECT * FROM $tableall;";
$this->allresult = mysql_query($this->allque) or die(mysql_error());
$this->numrows = mysql_num_rows($this->allresult);
$this->alldata = mysql_fetch_array($this->allresult, MYSQL_ASSOC);
return $this->alldata;
}