2007. 03. 27, kedd keltezéssel 17.28-kor Dan Shirah ezt írta: > 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. yeah, this shows that you don't have an associative array, so you have nothing like $row['fist_name'] you might access the fields by their number or you could use mssql_fetch_assoc() http://www.php.net/manual/en/function.mssql-fetch-assoc.php greets Zoltán Németh > > 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 > > >> > > > > > >> > > > > > >> > > > > >> > > >> > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php