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
https://forums.phpfreaks.com/topic/53181-solved-update-longitude/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.