i am trying to develop a web-based database of proteins. i have 
following problems...

my menu page contains following code...
---------------------------------------
<li><a href="menu.php">HISTONES</a>
<ul>
 <li><a href="histone/histoneh1.php" target="content" >Histone 
H1</a></li>
 <li><a href="histone/histoneh2a.php" target="content" >Histone 
H2A</a></li>
 <li><a href="histone/histoneh2b.php" target="content" >Histone 
H2B</a></li>
 <li><a href="histone/histoneh3.php" target="content" >Histone 
H3</a></li>
 <li><a href="histone/histoneh4.php" target="content" >Histone 
H4</a></li>
</ul></li>
---------------------------------------

obviously i have five different pages (histoneh1.php, histoneh2a.php 
and so on) linked respectively.

however code in all files remains same and is as following...
---------------------------------------

$result = mysql_query( "SELECT variant, uniprotkb, description, genes 
from histone where histone ='histone h1' group by variant" ) 
or die(mysql_error());
---------------------------------------
except "where histone ='histone h1'" changes to respective protein.

is there any way i can write single page instead of five different 
pages and just change the variable?

Reply via email to