Here's my code...
I've also used...PHP Code:<?php include "reports/report".$reportTypeID.".php?sr_id=".$sr_id.""; ?>
and this...PHP Code:<?php include "reports/report$reportTypeID.php?sr_id=$sr_id"; ?>
I'm getting this error/warningPHP Code:<?php include ('reports/report'.$reportTypeID.'.php?sr_id='.$sr_id); ?>
the report folder is within the clients folder, so my paths are correct. I did have the file in an IFRAME and it was working.Warning: main(reports/report1.php?sr_id=397): failed to open stream: No such file or directory in /home/melindab/public_html/clients/video_report2.php on line 290
Warning: main(reports/report1.php?sr_id=397): failed to open stream: No such file or directory in /home/melindab/public_html/clients/video_report2.php on line 290
Warning: main(): Failed opening 'reports/report1.php?sr_id=397' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/melindab/public_html/clients/video_report2.php on line 290
Can I not use variables or parameters in an include?




Bookmarks