Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Include function with recordset variable

New Here ,
Nov 19, 2009 Nov 19, 2009

Hi,
i am trying to include a content from another files with a recordset variable,but it doesn't work...

here is the script

<?php
include_once('proid=$row_RS['No']_page.html');?>

can i know how to fix this?


Thanks

TOPICS
Server side applications
271
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 20, 2009 Nov 20, 2009
LATEST

kyo8888888888 wrote:

<?php
include_once('proid=$row_RS['No']_page.html');?>

If you are including a file, the value should be a filename or path. Beginning with "proid=" makes no sense.

Even if it did, your PHP syntax is completely wrong. Assuming $row_RW['No'] contains an expression to which you want to add _page.html, it should be this:

<?php

include_once($row_RS['No'] . '_page.html');

?>

However, an include file should not be a full HTML page. It should contain only the code or HTML that you want to include at that point.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines