Ok, what I'm trying to do is connect to a database and run a simple query, but i keep getting "Resource id #3" printed in the browser. I even simplified the query down to a simple select * from table but the message still comes help. Here is the code:
$link=pg_connect("dbname=msg user=user");
//connect to database
$query="select * from messages";
//selects all from the database where the start date (start_date) is the current date calculated above
$result=pg_exec($link,$query);
//execs the query
print($result);
//displays the results in the browser
Please help as I really need this stupid thing to work.
$link=pg_connect("dbname=msg user=user");
//connect to database
$query="select * from messages";
//selects all from the database where the start date (start_date) is the current date calculated above
$result=pg_exec($link,$query);
//execs the query
print($result);
//displays the results in the browser
Please help as I really need this stupid thing to work.