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


P: n/a

Follow problem.

I have a array.
I want to copy the values in a database.
I can do this with the insert statement but instead I would try it with the
function pg_copy_from()

As first parameter I have a resource to a database. I get the resource with
the function getResource. This function is implemented in connectie.php (see
Second parameter is the name of the table
Third parameter is the array.

When I call the function save_db() //see below I get the follow error:
Fatal error: Call to undefined function: pg_copy_from() in C:\Program
Files\Apache Group\Apache2\htdocs\Enquete\clEnquete.php on line 59

Function save_db()


pg_copy_from(getResource(), "tbl_answer_cursist", $this->antw_single);
(line 59)




Function openDB()


global $link;

$link = mysql_pconnect("localhost","","")

or die("geen connectie mogelijk : " . mysql_error());

mysql_select_db("Enquete") or die("geen database gevonden");

function getResource()


global $link;

return $link;



What's the problem here?

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.