include problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings everyone,

 

Thanks for the help in advance.

PHP version is 4.3

 

I have set a variable and building a string that will be used later in
my php file.

The string is a table. Within this table I want to call another php file
using include for a

pulldown menu. The problem is the included file is not showing its
information. Snippets

are provided below...

 

 

SNIPPET of table string...

 

$post_payment_form = ' [SNIP]...

                                    

<td class="content_label_5_8pt">Full or Partial?</td>

<td class="content_label_5_8pt">

                                                <select
name="full_partial_select_1">

                                                            <?
include("includes/get_payment_type.php"); ?>

                                                </select></td>

                                    </tr>

 

                                    [SNIP]

                                    ';

 

GET_PAYMENT_TYPE.PHP code...

 

<?php

 

require_once('includes/data_access.php');

 

//setup payment types drop down

"<option></option>";

 

$payment_type_rs = get_payment_types();

if( $payment_type_rs )

{

            while( $payment_type = mysql_fetch_assoc( $payment_type_rs )
)

            {

                        sprintf( '<option value="%s">%s</option>',

 
$payment_type['stage_code_id'],

 
$payment_type['stage_code'] );

            }

}

 

//clean up

if( $payment_type_rs )

            mysql_free_result( $payment_type_rs );

 

 

?>

 

The result is an empty pulldown menu.

 

Suggestions?

 

 

Jef

 


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux