$SQL="select Test_Date, SerialNumber, Part, Platform, Machine ";
///the above line works if no number fields(or small number of digits in a numeric field) are in it. If I put a number field (that has many digits) in it php bombs.
$SQL="$SQL from gagedata";
$SQL="$SQL where Test_Date = '$sent_datetime'";
$SQL="$SQL and";
$SQL="$SQL Machine like '$mach'";
$result=mssql_query($SQL);
If I use a numeric field and convert it as part of the SQL call it works fine. Example that works::::
$SQL="select Test_Date, convert(varchar,height) as height, Part, Platform, Machine ";
// Notice the above converts the SQL data prior to bringing it back from the server. This allows the php mssql software to process it.
$SQL="$SQL from gagedata";
$SQL="$SQL where Test_Date = '$sent_datetime'";
$SQL="$SQL and";
$SQL="$SQL Machine like '$mach'";
$result=mssql_query($SQL);
Thnks for your help.
I didn't try converting every thing to ODBC but I think that would have worked as well.