PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds Bug Reports

Classifieds Bug Reports Post any problems you may be having with Classifieds here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 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.
Olney is offline   Reply With Quote
Old 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.
Olney is offline   Reply With Quote
Old 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.
Michael P is offline   Reply With Quote
Old 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.
Olney is offline   Reply With Quote
Old 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.
Michael P is offline   Reply With Quote
Old 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.
Olney is offline   Reply With Quote
Old 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.
Michael P is offline   Reply With Quote
Old 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.
Olney is offline   Reply With Quote
Old 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.
Michael P is offline   Reply With Quote
Old 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.
Olney is offline   Reply With Quote
Old 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.
Michael P is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Require Zip Code rcsmith Classifieds Suggestions 16 July 3rd, 2010 02:42 PM
RP - Zip Code & Reviews InterFX ReviewPost How do I...? 2 July 18th, 2005 05:20 PM
Zip Code Documentation pgowder Classifieds Installation & Upgrades 8 March 29th, 2005 03:56 PM
Zip Code Does Not Work joe4 Before You Buy 2 December 22nd, 2004 03:23 PM
Zip Code Error HobbyTalk Classifieds Bug Reports 0 December 3rd, 2004 01:27 PM


All times are GMT -5. The time now is 05:10 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0