 | |  | | | Classifieds Bug Reports Post any problems you may be having with Classifieds here. |
January 18th, 2005, 02:07 PM
|
#1 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2005
Posts: 9
| Zip Code upgrades
I had to take off the last ); for the zip codes to install correctly.
|
| |
January 18th, 2005, 03:56 PM
|
#2 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2005
Posts: 9
|
Also Problem for those in New Englnd
Zip codes start with
02354 for example
A user enters it in & the tables only see it as
2345 & reads no zip code was entered.
|
| |
January 18th, 2005, 05:32 PM
|
#3 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,834
|
Try changing line 334 in showcat.php to:
$query = "SELECT lon,lat FROM zipData WHERE zipcode = '".addslashes($zipcode)."'";
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
January 18th, 2005, 07:46 PM
|
#4 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2005
Posts: 9
|
Sorry line 415 is an image query on mine
Did you mean
$query = "SELECT lon,lat FROM zipData WHERE zipcode = '".intval($prodzipcode)."'";
That didn't work same thing is happening.
|
| |
January 18th, 2005, 08:08 PM
|
#5 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,834
|
hmmmm.... I ran a test (without the change above); and its saving the zipcode properly:
zipcode 06076 www.viperalley.com/classifieds/
1536
2508244224
29693256
4139935584
29687221
Why do you think its not finding the zip code or removing the leading zero?
I made a slight change to the line above, different line number; although it will have no effect, but should be done anyways.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
January 18th, 2005, 08:21 PM
|
#6 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2005
Posts: 9
| Did you
Did you try it on the creation of an ad?
It will works fine if a user sees an ad
But it doesn't work when the person posting the zip ad has a zip code that starts with 0.
|
| |
January 18th, 2005, 08:28 PM
|
#7 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,834
|
No, but you didn't say anything about creating an ad in your first post, so I wasn't looking there. I "guessed" you meant as a user on the showcat page.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
January 18th, 2005, 08:32 PM
|
#8 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2005
Posts: 9
|
Sorry still going through getting familiar with the software only had it for a few days.
|
| |
January 18th, 2005, 08:43 PM
|
#9 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,834
|
line 259 in uploadproduct.php change intval to addslashes.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
January 18th, 2005, 09:41 PM
|
#10 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2005
Posts: 9
|
My Product tables in mysql just aren't holding any zip codes that start with 0
On the install the structure was
zipcode INT(5) default '0'
On the Zipcode tables the row is
(zipcode varchar(5) NOT NULL default '',
Should they be the same
When I edit an existing product with a zip code that starts with 0 it doesn't hold.
Wen I enter in a new product it doesn't hold.
If I enter in 03245
It just has 3245 in the zipcode row in the Product table.
I tried to enter it manually & it didn't work.
|
| |
January 18th, 2005, 10:01 PM
|
#11 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,834
|
We'll have to change the data type to a varchar:
ALTER TABLE products CHANGE zipcode zipcode VARCHAR( 5 ) ;
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 05:10 PM. | |