I need some help, my code seems to be accepted fine as no error messages come display. Here's my code:
<?php
$connection = mysql_connect("localhost","root","computer")
or die ("Couldn't Connect");
?>
<?php
$db = mysql_select_db("mitch",$connection)
or die ("Couldn't select database");
$query = "SELECT * from mitch.product";
$result = mysql_query($query)
or die ("Couldn't execute query");
?>
<?php
echo $result
?>
The result given on my website is: Resource id#3. Instead of what the result of the query should be in the database.
Any help please!!
Mitch.