PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Figured this one out, however now I am facing a new challenge. I have a for loop to create my table that is populated with data pulled form a database. It seems that the loop is only running through once. Here is the code.
Again you're not giving us enough detail. It's only running once because odbc_num_fields($result5) is equal to or less than 1. I guess you need to work out why it's returning <= 1. It may be failing and returning -1. You'll have to do some basic debugging, try echoing odbc_num_fields($result5)...
Hmm. output of echo odbc_num_fields($result5); is 1. Is it because I am not doing the odbc_exec statments in the for loop? I am connecting to an mssql 2005 db using freetds odbc connector if that helps anything. Here is the complete code for the page not including the database connection or the SQL querys.