Echo results not working
Posted: Sat Jan 22, 2011 10:58 am
Alright, the only thing I am getting back from this code is: Resource id #2. I am trying to pull all records and have them ordered alphabetically. Please help, thanks!
Code: Select all
<?php
$con = mysql_connect("localhost","ID","Psswrd");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("db", $con);
$result = mysql_query("SELECT * FROM Table ORDER BY column");
echo $result;
mysql_close($con)
?>