By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,327 Members | 2,627 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,327 IT Pros & Developers. It's quick & easy.

Begineer: searching a postgres table

P: n/a
I am a beginner to php, i am able to connect to my postgres database and run
off a few queries such as select a field from a table using the command

$query = "SELECT species_name FROM species"; $result
= pg_query($connection, $query) or die("Error in query: $query. " .
pg_last_error($connection));.

On the forms front (another new topic) i am able to set up a form and send
the inputted data to another php file which prints it out.
<form action="hello.php" method="POST">
Species: <input type="text" name="species_name" />

<input type="submit">
</form>

(i know the hello.php file isnt exactly well named but it was where i
started to learn)

The problem: Creating a form that will directly query my database i.e enter
a species and then have details of that species printed out, all help is
appreciated David
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.