MysticImages
Programmer
Hi Everyone,
I need alittle help on how to set a few pages up. I'm having a little problem with adding an require() in my php page. Here is how it is setup
ProductList.html calls ProductCall.php
Inside Productcall, I have several functions that are called from a Product.html page. and the Productcall also has a require statement
require("
Now, for some reason I'm getting a error message as follows:
Fatal error: Failed opening required ' (include_path='') in / on line 21
The only code in the productcall.php is:
#!/usr/local/bin/php
<?php
function writeDescrip()
{
echo(str_replace('+', ' ', $descrip));
}
function writeImageSource()
{
echo ("<img src=$bpic width='343'
height='252'>"
}
function writeItemPrice()
{
echo("Item#: " + $Item_number);
echo("<br>"
echo("Price: " + $amount);
}
require("?>
It appears as though the error is refering to the require statment. Is there something wrong with this statement? Also, Can I use the require or include functions to pass variables to the included page, or are all the variables availiable already because they where passed to the productcall.php file? Thanks for any help.
Michael
I need alittle help on how to set a few pages up. I'm having a little problem with adding an require() in my php page. Here is how it is setup
ProductList.html calls ProductCall.php
Inside Productcall, I have several functions that are called from a Product.html page. and the Productcall also has a require statement
require("
Now, for some reason I'm getting a error message as follows:
Fatal error: Failed opening required ' (include_path='') in / on line 21
The only code in the productcall.php is:
#!/usr/local/bin/php
<?php
function writeDescrip()
{
echo(str_replace('+', ' ', $descrip));
}
function writeImageSource()
{
echo ("<img src=$bpic width='343'
height='252'>"
}
function writeItemPrice()
{
echo("Item#: " + $Item_number);
echo("<br>"
echo("Price: " + $amount);
}
require("?>
It appears as though the error is refering to the require statment. Is there something wrong with this statement? Also, Can I use the require or include functions to pass variables to the included page, or are all the variables availiable already because they where passed to the productcall.php file? Thanks for any help.
Michael