Jump to content

[SOLVED] Update Longitude


tekrscom

Recommended Posts

I was wondering if anyone would know why I can't update a longitude? Here's my code...

 

$sqlquery = "UPDATE sites SET
new_site_id = '$_POST[new_site_id]',
site_id = '$_POST[site_id]',
site_type = '$POST[site_type]',
lat = '$_POST[lat]',
long = '$_POST[long]',
site_name = '$_POST[site_name]',
tower = '$_POST[tower]',
address = '$_POST[address]',
city = '$_POST[city]',
state = '$_POST[state]',
zip = '$_POST[zip]',
cluster = '$_POST[cluster]'
    	WHERE gold_id = '$_POST[gold_id]'";

 

The table is set as long as varchar, same as lat, I thought at first it had something to do with the longitude being a negative number, but when I attempt to update it without using the negative number it still fails. I can update the field from phpMyadmin, but not from the script. As long as I take out the "long = '$_POST[long]'," line, it works fine.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.