[PHP-DB] Re: MSSQL DB Connect

2002-01-02 Thread Jerry
Thanks Jeremy, I finally found the solution: 0){ print "Number of rows: $number"; while($i < $number){ $dateval= mssql_result($result,$i,"dateval"); echo "$dateval"; $i++;} }?> And it works fine ! Now I'm looking for the same function for IBM DB2 database connection... Jerry "Jeremy Reed"

[PHP-DB] Re: MSSQL DB Connect

2001-12-21 Thread Jeremy Reed
What was the error message you received? Also, when passing the variables to the mssql_connect() function, you need not use quotes since you've already initialized them to the strings. Pass them as follows: $connection = mssql_connect($a,$b,$c). Also, you aren't passing the actual sql string t