[Bmfo-devel] SF.net SVN: bmfo: [738] trunk/bmfo/admin/load_meter_data.php
Brought to you by:
maher_karim,
sdteffen
From: <ahm...@us...> - 2006-07-10 12:17:59
|
Revision: 738 Author: ahmad2005 Date: 2006-07-10 05:17:28 -0700 (Mon, 10 Jul 2006) ViewCVS: http://svn.sourceforge.net/bmfo/?rev=738&view=rev Log Message: ----------- alter session set NLS_CHARACTERSET='ar8mswin1256'; Modified Paths: -------------- trunk/bmfo/admin/load_meter_data.php Modified: trunk/bmfo/admin/load_meter_data.php =================================================================== --- trunk/bmfo/admin/load_meter_data.php 2006-07-10 11:50:09 UTC (rev 737) +++ trunk/bmfo/admin/load_meter_data.php 2006-07-10 12:17:28 UTC (rev 738) @@ -21,6 +21,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +alter session set NLS_CHARACTERSET='ar8mswin1256'; $_SESSION = array(); $_SESSION["UserName"] = ""; $_SESSION["Password"] = ""; @@ -73,7 +74,7 @@ 'MeasurementDate' => 'String', */ 'Destination' => 'Number' ); - + // construct db and dbf fields $fields_dbf = array(); $fields_dbx = array(); @@ -110,13 +111,13 @@ for($j=0; $j<count($field_index); $j++) { $value = $record[$field_index[$j]]; if($j != 0){ - $insert = $insert.","; + $insert = $insert.","; } if(is_string($value)) { - $value = trim(str_replace("'", "''", $value)); - $insert = $insert."'$value'"; + $value = trim(str_replace("'", "''", $value)); + $insert = $insert."'$value'"; } else { - $insert = $insert."$value"; + $insert = $insert."$value"; } } $insert = $insert.")"; @@ -131,4 +132,4 @@ } } dbx_close($rdbms); -?> +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |