0
<?php

       if (isset($_REQUEST['submit'])) {
echo "<p> hello</p>";

$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = 'shshsh11';

mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');

$dbname = 'Studentt';
mysql_select_db($dbname);
$result = mysql_query("SELECT * FROM `allele`");
print $result;



               

	   } else {

?>

       <html>

       <body>

       <form action="wcode.php" method=POST>

		<P><strong>Available Queries</strong><br>

		<INPUT TYPE="radio" NAME="Microsatellite Primers">Microsatellite Primers<br>
                <INPUT TYPE="radio" NAME="Maps">Maps for specified loci, possibly on a specified chromosome<br>
		<INPUT TYPE="radio" NAME="Common loci">Loci in common between two maps<br>
		<INPUT TYPE="radio" NAME="Loci">Loci on more than 4 maps<br>

               <P><P><P><input name=submit type=submit value=submit>

       </form>

       </body>

       </html>

<?php

       }

?>

it gives following result

hello
Resource id #3

what is Resource id #3
how do we solve it?
please help

Edited by Ezzaral: Added code tags. Please use them to format any code that you post.

2
Contributors
1
Reply
3
Views
7 Years
Discussion Span
Last Post by Wraithmanilian
0

Are you, by any chance, running php on a windows machine using something like EasyPHP?

Edited by Nick Evan: Fixed formatting

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.