The WorksForWeb Community Forums
Welcome to the WorksForWeb community forums. Here you can discuss WorksForWeb products with others and contribute to the rapidly growing WorksForWeb community. Please note that while WorksForWeb staff try to maintain presence on the forums, this is not the most reliable way to contact WorksForWeb staff. In case you require a timely response from WorksForWeb on an issue, please open a support ticket here. For pre-sales questions, please open a sales ticket here.

Welcome, Guest. Please login or register.
May 21, 2012, 09:30:03 PM

Login with username, password and session length
Search:     Advanced search
Added the iLister-related Boards

Rate My Site Boards Added

Merged iAuto and iRealty Support Forums together

Several new tips in the Tips and Tricks section
1,604 Posts in 625 Topics by 1,179 Members
Latest Member: bobsteam
* Home Help Search Login Register
+  The iAuto/iRealty/iLister Support Forum
|-+  iAuto, iRealty and iLister v.4.x
| |-+  Bugs and Patches
| | |-+  The "Non-Numeric Zip Code Value" Issue
« previous next »
Pages: [1] Print
Author Topic: The "Non-Numeric Zip Code Value" Issue  (Read 1749 times)
Smart Girl
Administrator
Full Member
*****

Karma: 5
Posts: 224


View Profile
« on: October 25, 2007, 04:13:17 PM »

Description:
The ZipCode/Postcode field fails to accept the non-numeric characters like "AB10" and displays the following error:

Query UPDATE listings_properties SET value = AB10 WHERE object_sid = 437 AND id = 'ZipCode' :
Unknown column 'AB10' in 'field list'



Affected versions and products:
iAuto 4.0.0. -- 4.0.1.
iRealty 4.0.0. -- 4.0.1.

Instructions:

Add the following lines:

function getSQLValue()
   {
      return "'". mysql_real_escape_string($this->property_info['value']) ."'";
   }


between (lines approx. # 38-39):

return $this->property_info['value'];
    }


and (lines approx. # 41-43):

   }
 
 ?>


to the system/lib/orm/types/GeoType.php file.


If you find similar issues with your copy of iAuto or iRealty, please let us know.
Logged

huggy
Newbie
*

Karma: 0
Posts: 2


View Profile
« Reply #1 on: October 25, 2007, 04:19:02 PM »

Yep, looks all fine to me and works ok. Many thanks!!
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Classified Software by Worksforweb Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!