remove connection, what does application do
Posted: Mon May 31, 2010 6:33 am
I have a code
Any problem if I remove the first line pg_connect("dbname=mydb user=myuser") and now I only have
I know that I will have $myresult = null but I want to know what will happen. Does the application slow down as it looks for a database connection? Does it throw an error?
Many thanks
john
Code: Select all
<?
pg_connect("dbname=mydb user=myuser");
$myresult = pg_exec("SELECT * FROM id,username,fname,lname where id > 100");
?>
Code: Select all
<?
$myresult = pg_exec("SELECT * FROM id,username,fname,lname where id > 100");
?>
Many thanks
john