Re: [PHP] POST + QUERY




I would try an
echo $my_info[7];

[]s


Em Terça 27 Março 2007 18:28, Dan Shirah escreveu:
Here are the results of my print_r

Array ( [0] => 121 [1] => Y [2] => DS [3] => **************** [4] => {03}
[5] => 500 [6] => *** *[7] => John* [8] => Mark [9] => Doe [10] => 123 My
Way [11] => 456 Your Place [12] => Smithville [13] => 12345 [14] => 5432
[15] => 1235550000 [16] => 1235550011 [17] => a@xxxxx [18] => Y [19] =>
These are the comments [20] => Mar 27 2007 5:26PM [21] => Dan Create [22]
=> Mar 27 2007 5:26PM [23] => Dan Research [24] => Mar 27 2007 5:26PM [25]
=> Dan Submit [26] => C [27] => TN )

Bold and in red is the first_name column result.

On 3/27/07, Brad Bonkoski <bbonkoski@xxxxxxxxxxxxxx> wrote:
Send us the output of print_r($row_info)
feel free to mask out any data values you may wish.

Dan Shirah wrote:
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.

On 3/27/07, Zoltán Németh <znemeth@xxxxxxxxxxxxxx> 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 <mrsquash2@xxxxxxxxx> 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 <davividal@xxxxxxxxx> 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
davividal@xxxxxxxxxxxxxxxx
davividal@xxxxxxxxx
--

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

--
Davi Vidal
davividal@xxxxxxxxxxxxxxxx
davividal@xxxxxxxxx
--

Agora com fortune:
"Unless hours were cups of sack, and minutes capons, and clocks the tongues
of bawds, and dials the signs of leaping houses, and the blessed sun himself
a fair, hot wench in flame-colored taffeta, I see no reason why thou shouldst
be so superfluous to demand the time of the day. I wasted time and now doth
time waste me.
-- William Shakespeare"
.



Relevant Pages

  • Re: [PHP] POST + QUERY
    ... the above echo still returns nothing. ... Agora com fortune: ... "<agaffney> I want to be so bleeding edge that I cut myself! ... "[during a fishing trip] ...
    (php.general)
  • Re: SLRN random-sig files, found this but stilll
    ... but you could go nuts and set up a cron job that runs every minute if ... I don't know what mail client is involved here, ... you can use the built in functionality of 'fortune' and create your own ... echo `fortune /home/joehill/sigs/quotes` ...
    (Debian-User)
  • Re: [PHP] POST + QUERY
    ... the above echo still returns nothing. ... "<agaffney> I want to be so bleeding edge that I cut myself! ... PHP General Mailing List ...
    (php.general)
  • Re: [OT] How to add fortune output to terminal
    ... safe method to add a fortune command to my .bashrc ... file so as to have fortune output in my terminal @ ... Your .bashrc should be completely silent. ... echo "Fortune cookie:" ...
    (Debian-User)
  • Making fortune write to a file?
    ... I've installed Fortune on my machine and I'd like to use it as a very ... basic .sig generator in my .bashrc ... How do I get it to _overwrite_ an existing file without checking? ... I know how to get fortune to echo to my screen, ...
    (linux.redhat.misc)