> hey guys,
> alright, I am new to using php to interface with a database, right now I
> am trying to display just the primary keys for a table in my database, can
> someone point me in the right direction on how to use php to display this
> information?
Create a function to supply the info -- see:
http://www.brasileiro.net/postgres/cookbook/view-one-recipe.adp?recipe_id=36
Then call the function:
<?PHP
$conn = pg_connect("dbname=your_db_name user=your_user_name
password=your_password");
$sql = "select get_pk('your_table_name')";
$rs = pg_exec($conn,$sql);
. . .etc
Hope this helps,
Joe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]