Here is the result from the <pre></pre> Once again, bold and red is the
first_name field.
array(28) {
[0]=>
int(122)
[1]=>
string(1) "Y"
[2]=>
string(2) "DS"
[3]=>
string(16) "****************"
[4]=>
string(4) "{03}"
[5]=>
float(500)
[6]=>
string(4) "*** "
*[7]=>
string(4) "John"*
[8]=>
string(4) "Mark"
[9]=>
string(3) "Doe"
[10]=>
string(40) "123 My Way "
[11]=>
string(40) "456 Your Place "
[12]=>
string(40) "Smithville "
[13]=>
string(5) "12345"
[14]=>
string(4) "5432"
[15]=>
string(10) "1235550000"
[16]=>
string(10) "1235550011"
[17]=>
string(7) "[EMAIL PROTECTED]"
[18]=>
string(1) "Y"
[19]=>
string(22) "These are the comments"
[20]=>
string(19) "Mar 27 2007 5:29PM"
[21]=>
string(30) "Dan Create "
[22]=>
string(19) "Mar 27 2007 5:29PM"
[23]=>
string(30) "Dan Research "
[24]=>
string(19) "Mar 27 2007 5:29PM"
[25]=>
string(30) "Dan Submit "
[26]=>
string(1) "C"
[27]=>
string(2) "TN"
}
On 3/27/07, Zoltán Németh <[EMAIL PROTECTED]> wrote:
2007. 03. 27, kedd keltezéssel 17.17-kor Dan Shirah ezt írta:
> echo $row_info['first_name']; returns nothing.
>
> However I have verified the correct spelling both in the database and
> in the PHP code and they are identical and when I print_r it shows
> that there is a value in the first_name column of the record.
maybe paste here the complete result of:
echo "<pre>";
var_dump($row_info);
echo "</pre>";
so I might have some more ideas...
greets
Zoltán Németh
>
> On 3/27/07, Zoltán Németh <[EMAIL PROTECTED]> wrote:
> 2007. 03. 27, kedd keltezéssel 16.56-kor Dan Shirah ezt írta:
> > Sorry, had a typo.
> >
> > *$cc_first = $row_info['first_name'];
> > echo "$cc_first";*
> > this echo returns nothing.
>
> and what does
> echo $row_info['first_name'];
> print out?
>
> if still nothing, then probably
> 1) you misspelled the field name and it's not called
> first_name
> 2) the field first_name is empty in the row
>
> greets
> Zoltán Németh
>
> >
> > On 3/27/07, Dan Shirah <[EMAIL PROTECTED]> wrote:
> > >
> > > print_r($row_info) display the entire column contents of
> the select id
> > >
> > > However,
> > >
> > > *$first = $row_info['first_name'];
> > > echo "$cc_first";*
> > >
> > > the above echo still returns nothing.
> > >
> > >
> > > On 3/27/07, Davi <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Em Terça 27 Março 2007 17:40, Dan Shirah escreveu:
> > > > > I have echoed something out after virtually every line
> of code :)
> > > > >
> > > > > When I echo out my result ($result_info) it returns
> Resource id#2
> > > > > When I echo out my row ($row_info) it returns Array
> > > > >
> > > > > When I try to echo out a field from my array($my_info)
> it returns
> > > > nothing
> > > > > at all.
> > > > >
> > > >
> > > > How about:
> > > >
> > > > print_r($row_info);
> > > >
> > > > ??
> > > >
> > > >
> > > > --
> > > > Davi Vidal
> > > > [EMAIL PROTECTED]
> > > > [EMAIL PROTECTED]
> > > > --
> > > >
> > > > Agora com fortune:
> > > > "<agaffney> I want to be so bleeding edge that I cut
> myself!
> > > > <robbat2> agaffney, no, that's just emo
> > > > <agaffney> Gentoo is emo :P"
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > > >
> > >
>
>