Hi!
Here is my dumb question for the day. I have a database that has 3 separate project names in it. I would like to take this information and put it into a report, depending on which project the user would like to see. Only one project at a time. I can get the field names to come up in my table, but the actual information that is suppose to be on the report is blank. Does this make sense? Here is my code, if it helps. I know I'm missing some things, just can't figure out what. THANKS FOR YOUR HELP!!
<?
$hostname="11.111.1.111";
$user="$pass="me";
$database="qtso";
$table= "serverrequest";
?>
<HTML>
<HEAD>
<TITLE>Request Report</TITLE>
</HEAD>
<BODY bgcolor="#ffffff">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?
$result=("SELECT * FROM SERVERREQUEST WHERE Project='MDS'"
;
$row=mysql_fetch_array($result);
?>
<table width="75%" border="1" cellpadding="3" height="76" align="center">
<tr>
<td width="18%">Vendor Name:</td>
<td width="82%">
<?php echo $GET['Vendor'] ?>
</td>
</tr>
//There are more fields - like email, phone, address, city, state, etc.
</table>
<p> </p>
</body>
</html>
Here is my dumb question for the day. I have a database that has 3 separate project names in it. I would like to take this information and put it into a report, depending on which project the user would like to see. Only one project at a time. I can get the field names to come up in my table, but the actual information that is suppose to be on the report is blank. Does this make sense? Here is my code, if it helps. I know I'm missing some things, just can't figure out what. THANKS FOR YOUR HELP!!
<?
$hostname="11.111.1.111";
$user="$pass="me";
$database="qtso";
$table= "serverrequest";
?>
<HTML>
<HEAD>
<TITLE>Request Report</TITLE>
</HEAD>
<BODY bgcolor="#ffffff">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?
$result=("SELECT * FROM SERVERREQUEST WHERE Project='MDS'"
$row=mysql_fetch_array($result);
?>
<table width="75%" border="1" cellpadding="3" height="76" align="center">
<tr>
<td width="18%">Vendor Name:</td>
<td width="82%">
<?php echo $GET['Vendor'] ?>
</td>
</tr>
//There are more fields - like email, phone, address, city, state, etc.
</table>
<p> </p>
</body>
</html>