Is it ok that we call moma rodriques on that number???
On 29/09/2007, Conrad <[EMAIL PROTECTED]> wrote:
>
> I was trying to read a field named 'check_num'. I changed the field
> name to 'draft' (and throughout the logic) and it all works now. Go
> Figure!
> Conrad
>
> On Sep 29, 1:43 pm, Conrad <[EMAIL PROTECTED]> wrote:
> > AD,
> > Using EITHER Cake or normal PHP, the value in the 'check_num' field,
> > although valid in the table, is not being read.
> > The field is filled IN THE TABLE, but not in the associative array
> > (either $this->data, or $row = mysql_fetch_assoc() )
> >
> > This does not appear to be a "cake" problem, as normal PHP does the
> > same thing.
> >
> > Conrad
> >
> > On Sep 29, 4:29 am, AD7six <[EMAIL PROTECTED]> wrote:
> >
> > > On Sep 29, 9:12 am, Conrad <[EMAIL PROTECTED]> wrote:
> >
> > > > I tried using the straight php code:
> > > > $resultID = mysql_query("SELECT * FROM dailypays");
> > > > for ($x= 0; $x < mysql_num_rows($resultID); $x++)
> > > > {
> > > > $row = mysql_fetch_assoc($resultID);
> > > > ...
> > > > $this->set('row',$row);
> > > > -----------------
> > > > this produced the same results. This (other than the $this->set() )
> > > > did not use any cakePHP
> >
> > > > Any answers anybody?
> >
> > > Are you saying that the array key is missing in results (what I
> > > originally understood), or that the value is different. If it's the
> > > latter (what I now understand) I would check your table definitions
> > > are correct as perceived by cake (pr($ModelInstance); and see where
> > > this info goes missing (trace where the code goes for model->findAll,
> > > find the db call and from there walk the code to find the
> > > disappearance.)
> >
> > > hth,
> >
> > > AD
>
>
> >
>
--
------------------------------------
Mike Green
Find yourself some misspelled ebay bargains!
http://www.typingwand.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---