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($conne ction, $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.p hp" method="POST">
Species: <input type="text" name="species_n ame" />
<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
off a few queries such as select a field from a table using the command
$query = "SELECT species_name FROM species"; $result
= pg_query($conne ction, $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.p hp" method="POST">
Species: <input type="text" name="species_n ame" />
<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