while($data = mysql_fetch_assoc($result)){ $val[$data["Field"]]=$data["Type"]; print_r($data); } print_r($val); **/ $s = new Slide(); //echo $s->slide; //$y=Slide::find(1); // this returns an error when it looks for it's own class'; //Slide::me(); $y = $s->find(1); //echo "<br><BR><BR><BR> HERE IS Y"; // print_r($y); //echo "<br><BR><BR><BR> My name is:". $y->slide; spacers(); $y->slide = "yahoo!!.php"; $y->save(); $z = $s->find_by("id = 2"); echo "here are some objects:<BR>"; foreach ($z as $o) { //echo $o->id." ".$o->slide."<br>"; $o->output_xml(); } //$y->auto_fields(); //$y->has("Subslide"); $y->select_menu("Slide", "slide_id", "slide", "id", "2"); ?> </body> </html>
function index() { $o = new Slide(); $this->slides = $o->find_by("all"); }