marcusami
05-05-2008, 02:02 PM
I am trying to create a file on the fly with php from user input that is then put in a database, but i also want to write php to this new page.
it is using a database so i am trying to write a $product_ID var
to the page that holds product id, so it can then look up the product and product info on the generated page from the database
kind of along the lines of
$stringData = "<?php include 'connect.php'; $product_ID = ".$result_id."; $result = mysql_query('SELECT t_Loc, t_Loc_a, t_Loc_b, t_File FROM papas.trailers WHERE id = '$product_ID' ') or die(mysql_error());";
fwrite($aFileHandler, $stringData);
but i am failing to be able to do this
i really need some help
thanks
Marcus
it is using a database so i am trying to write a $product_ID var
to the page that holds product id, so it can then look up the product and product info on the generated page from the database
kind of along the lines of
$stringData = "<?php include 'connect.php'; $product_ID = ".$result_id."; $result = mysql_query('SELECT t_Loc, t_Loc_a, t_Loc_b, t_File FROM papas.trailers WHERE id = '$product_ID' ') or die(mysql_error());";
fwrite($aFileHandler, $stringData);
but i am failing to be able to do this
i really need some help
thanks
Marcus