Here is the error message:
SELECT * from testdiw
Notice: Undefined variable: acctmgr_phone in c:\program files\easyphp1-7\www\diw4.php on line 40
Notice: Undefined variable: acctmgr_cellphone in c:\program files\easyphp1-7\www\diw4.php on line 40
Notice: Undefined variable: acctmgr_email in c:\program files\easyphp1-7\www\diw4.php on line 40
Here is the code as it stand with your help:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<?php
$connect= mysql_connect("localhost","root","****")
or die("Could not connect to database in localhost !");
$result=mysql_select_db("testdiw")
or die("Could not select that database !");
echo "SELECT * from testdiw";
$joined = date("Y-m-d h:i:s");
$sqlquery = "INSERT INTO diw VALUES('','". $diwtitle ."','". $dropdownacctmgr ."','". $joined ."')";
$sqlquery = "SELECT * from diw";
$queryresult = mysql_query($sqlquery) or die(" Could not execute mysql query !");
$get_acctmgr_info = mysql_query("SELECT acctmgr_phone, acctmgr_cellphone, acctmgr_email FROM acctmgr WHERE acctmgr_name = '$dropdownacctmgr'");
$row=mysql_fetch_array($get_acctmgr_info);
echo '<table border=1 align=center width=500>
<TR>
<TD colspan=2><b>General Deposition
Information></b></TD>
</TR>
<TR>
<TD><b>DIW Title:</b></TD>
<TD>' .$diwtitle. '</TD>
</TR>
<TR>';
echo ' <TD>Account Manager Information:</TD> <TD>' .$dropdownacctmgr. '<BR>' .$acctmgr_phone. '<BR>' .$acctmgr_cellphone. '<BR>' .$acctmgr_email. '</TD>
</TR>
</TABLE>';
?>
</body>
</html>