Monday 15 February 2010

php - mysql_fetch_array() and mysql_query() problems -


I keep this error in my error log and I'm not sure why I have seen everywhere and Google has But I lost and I need help: < P> This is the reference that is the code:

  $ getlatlong = mysql_query ("choose from * zipcity where zip = '" $ url [2] "'", $ thief). $ Ll = mysql_fetch_array ($ getlatlong);   

If you need this, then this is the full code:

   Current_group- & gt; Name; $ Group_id = $ bp- & gt; Group-> Current_group- & gt; Id; $ Groupll = groups_get_groupmeta ($ group_id, $ meta_key = 'latlong'); $ Groupnamecount = strlen ($ group_name); $ Groupcity = groups_get_groupmeta ($ group_id, $ meta_key = 'city'); $ Groupstate = groups_get_groupmeta ($ group_id, $ meta_key = 'state'); $ Mapaddress = $ group_name '+'. $ Groupcity '+'. $ Groupstate; If ($ groupnamecount == '5') {$ grouptype = "zip"; } If ($ grouttpe == "zip") {$ url = explosion ('/', $ _ server ['REQUEST_URI']); $ Zip = $ url [2]; $ Getlatlong = mysql_query ("Select * Zipcode Zip = '". $ Url [2]. "'", $ Conn); $ Ll = mysql_fetch_array ($ getlatlong); } And {$ groupcity = groups_get_groupmeta ($ group_id, $ meta_key = 'city'); $ Groupstate = groups_get_groupmeta ($ group_id, $ meta_key = 'state'); $ Mapaddress = $ group_name '+'. $ Groupcity '+'. $ Groupstate; }   

UPDATE

The issue was that code $ was further declared under the code. Once I decided that, it worked perfectly. Thanks to everyone who answered!

There is a problem with your connection $ connection, it is not connected and return empty < / Div>

No comments:

Post a Comment