I think when you want use field table try with --> $data = mysql_fetch_assoc[$query]; $tax = $data['tax']; and when you use mysql_fetch_array, the code must be--> $data = mysql_fetch_assoc[$query]; $tax = $data[1]; hope can help you... On Sun, Jul 19, 2009 at 7:20 AM, Ken <ken.poyser@xxxxxxxxxxx> wrote: > > > 49 $ship_tax =$rs1['Tax']; > 50 $ship_city=$rs1['City']; > > Remove the underscore and add $ in line 49 > > Ken > > --- In php-objects@xxxxxxxxxxxxxxx <php-objects%40yahoogroups.com>, Nery > Benitez <nerybenitez@...> wrote: > > > > try this in line 49 $ship_tax = *$*rs_1['Tax']; > > > > On Sat, Jul 18, 2009 at 8:30 PM, Reji Jayan <for_rejijayan@...>wrote: > > > > > > > > > > > 44 $qry = "SELECT * FROM cityrates WHERE id = '$city_rec'"; > > > 45 $rec1 = mysql_query($qry); > > > 46 $rs1=mysql_fetch_array($rec1); > > > 47 > > > 48 $ship_county=$rs1['County']; > > > 49 $ship_tax = rs_1['Tax']; > > > 50 $ship_city=$rs_1['City']; > > > > > > got .. and im getting the error ...... > > > > > > Parse error: parse error in > > > E:\wamp\www\blah-bhal\vieworders.php on line 49 > > > > > > i dont know wht hapnd to that line ...... > > > > > > is it any reserved word .. any solution to solve this > > > > > > ( not on renaming the field on the table .. if so) > > > > > > > > > ---------------------------------------------------------- > > > > > > Looking for local information? Find it on Yahoo! Local > > > http://in.local.yahoo.com/ > > > > > > [Non-text portions of this message have been removed] > > > > > > > > > > > > > > > > > -- > > GBY > > > > Nery > > > > > > [Non-text portions of this message have been removed] > > > > > -- Best Regards, Evlin Marcelline decall29@xxxxxxxxx evlin.marcelline@xxxxxxxxxxx [Non-text portions of this message have been removed]