Re: Re: what is wrong with my code.. please help
| From: | Burhan Khalid | Date: | Mon, 27 Dec 2004 07:03:13 +0000 |
| Subject: | Re: Re: what is wrong with my code.. please help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205197@lists.php.net to get a copy of this message | ||
S Kumar wrote:
Dear group, I am trying to query my db and print the results. when i execute my script, i am not getting any result except a blank page. can any one please help me what is going wrong with my script. Script: $conn = pg_connect("user = $user dbname = $dbname host = $host password = $pass"); if (!$conn) {You are missing ; after the above two lines. Please use a php syntax aware editor to avoid these problems.echo('could not establish connection withdatabase <br>');exit;} $sql = "select * from experiment;" $sth = pg_exec($connect,$sql)