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 Link to comment https://forums.phpfreaks.com/topic/61893-include-filkes/ 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. Link to comment https://forums.phpfreaks.com/topic/61893-include-filkes/#findComment-308151 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.