$username="user";
$password="password";
$database="company";
mysql_connect("host.domain.edu",$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT pnumber,pname FROM project order by pnumber";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
Projects of Company
Project Number |
Project Name |
$i=0;
while ($i < $num) {
$pnum=mysql_result($result,$i,"pnumber");
$pname=mysql_result($result,$i,"pname");
?>
echo $pnum; ?> |
echo $pname; ?> |
$i++;
}
?>
Return to main page