Genesetdb

From Pathology Education Instructional Resource
Revision as of 02:25, 26 October 2013 by Jrsinger (talk | contribs) (Created page with "<?php $con= mysqli_connect("localhost", "jrsinger", "U6d19lrBFC48z2fpF1K5PcRy80XS17QC", "genesetdb"); if(mysqli_connect_errno()) { die( "could not connect: " . mysqli_connect...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<?php $con= mysqli_connect("localhost", "jrsinger", "U6d19lrBFC48z2fpF1K5PcRy80XS17QC", "genesetdb"); if(mysqli_connect_errno()) { die( "could not connect: " . mysqli_connect_error()); } echo' <html>

 <head>
   <title>genetable</title>
 </head>
 <body>

Genetable

'; $sql="SELECT * FROM `workaround`;"; $result= mysqli_query($con,$sql); $pid=1; $genes=0; while ($row=mysqli_fetch_array($result)) { for($i=0; $i<200; $i++) { mysqli_query($con,"INSERT INTO TABLE `finalgeneset` VALUES(BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY" . $pid . ",". $row[$genes] . ");"); echo ' '; $genes++; } $pid++; $genes = 0; } echo'
Experiment Number Gene ID
' . $pid . ' ' . $row[$genes] . '
 </body>

</html> '; ?>