Hello
goes without saying but i am a bit of a noob. and am currently trying to convert our internet site (www.solicitordirect.com) to Drupal 6.
I am currently trying to work out how to copy our quoting system to drupal.
I have copied all the current internet site Mysql database in the Drupal Mysql database.
I am just currently trying to drag the PHP code from existing site ( http://www.solicitordirect.com/sales_quotation.php) into the content window in Drupal. - I have enabled the PHP filter.
is this the right way of going about this?
the Drupal Content Page at the moment doesn't seem to be pulling the databse info through just the HTML.
The orginal PHP pulled through a conf.PHP file that set up the database login etc...
<?PHP....?>
$dbname="******";
$host="localhost";
$user="*****";
$password="*****";
$loc="../";
$VAT=15.00;
?>
Does the Drupal .PHP need similar seetings, I thought not?
my PHP in Drupal currently:
<?PHP...?>
//include "conf.php";
//$conn=mysql_connect($host,$user,$password);
//mysql_select_db($dbname,$conn);
if(!isset($_POST['Actval']))
$Actval=0;
else
$Actval=$_POST['Actval'];
if($Actval==1 || $Actval==2)
{
$CustomerName=$_POST['CustomerName'];
$Email=$_POST['Email'];
$HousePrice=$_POST['HousePrice'];
$HousePriceOptionalFee=$HousePrice*0.01;