jenniferG Posted July 26, 2007 Share Posted July 26, 2007 we have a file external to our main php code with rows defing the variuables, just a text file called requestfields.php. Each row in the file looks like $ADDRESS1=$ROW['ADDRESS1']; $ADDRESS2=$ROW['ADDRESS2']; $ANNUALQTY=$ROW['ANNUALQTY']; and so on for all columns in the table. --------------------------------------------------------------------------------------------- if we use include 'requestfields.php' after the mysql_fetcharray(resource) command, we get a print of the requestfields file in a browser window. If we cut and paste inbto the main code file, everything works perfect. We are trying our code down as small as possibke and would like to use the include, but it appears to not work. Jennifer Quote Link to comment Share on other sites More sharing options...
akitchin Posted July 26, 2007 Share Posted July 26, 2007 you'll need to add PHP tags to the requestfields.php file in order to have PHP parse it as PHP; otherwise, it assumes the included file is output. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.