Everytime I run this code,
$dbcon = mysql_connect(“localhost”,“user”,“pass”) or die(“Could not make connection to database”);
mysql_select_db(“my_db”,$dbcon) or die(“Could not select the proper database”);
$rs = mysql_query(“SELECT des FROM picdes WHERE id=’”.$image."’");
echo $image;
echo ("
echo $rs;
I got an error saying:
“resource id # 90”
then I added the lines in blue
$dbcon = mysql_connect(“localhost”,“user”,“pass”) or die(“Could not make connection to database”);
mysql_select_db(“my_db”,$dbcon) or die(“Could not select the proper database”);
$rs = mysql_query(“SELECT des FROM picdes WHERE id=’”.$image."’");
$ar = mysql_fetch_object($rs);
echo $image;
echo ("
echo $ar;
and now I get the following as the query result:
Object
How do I get the actual data in the table? Help!!