|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-02 13:35 UTC] derick@php.net
[2004-03-02 14:40 UTC] gary at koning dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 12:00:01 2025 UTC |
Description: ------------ I am converting an application to win2k/mssql from linux/mysql. Using ereg to validate form field data. Getting unuasual error message from the win2k odbc driver. Reproduce code: --------------- Validation code: if( !ereg("^([1-zA-Z0-1@.\s-]{3,18})$",$stmp) ) Using odbc_do(), almost any simple query returning rows will result in the driver throwing an error message like: "Error converting data type varchar to numeric" I say almost because sometimes a row of data was returned. But even then, reloading the script would give the above error. Expected result: ---------------- Valid data from the odbc driver or a known error message. Actual result: -------------- Removing the call to ereg() will cause the query to return proper data. No further info at this time. (Took me 2 days to track this down). I beleive an old copy of active perl is installed on this box, if that has any bearing.