I have a code
Code: Select all
<?
pg_connect("dbname=mydb user=myuser");
$myresult = pg_exec("SELECT * FROM id,username,fname,lname where id > 100");
?>
Any problem if I remove the first line pg_connect("dbname=mydb user=myuser") and now I only have
Code: Select all
<?
$myresult = pg_exec("SELECT * FROM id,username,fname,lname where id > 100");
?>
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