Re: [PHP] data from database

2003-10-29 Thread alain dhaene
it works, thanks, Alain John Nichel [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] alain dhaene wrote: Hi, I will write a function that returns the result of a recordset. I tried this: Function getPersonen() { openDB(); //function that I implements in

RE: [PHP] data from database

2003-10-28 Thread Gregory Kornblum
$result = mysql_query($query) You need to pass the connection resource returned from your mysql_connect call as a second parameter. Regards. -Gregory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] data from database

2003-10-28 Thread John Nichel
Gregory Kornblum wrote: $result = mysql_query($query) You need to pass the connection resource returned from your mysql_connect call as a second parameter. Regards. -Gregory While it is a good practice to do this, it is not necessary... If link_identifier isn't specified, the last opened link

Re: [PHP] data from database

2003-10-28 Thread John Nichel
alain dhaene wrote: Hi, I will write a function that returns the result of a recordset. I tried this: Function getPersonen() { openDB(); //function that I implements in another file $query = SELECT * FROM Cursisten; $result = mysql_query($query) or die(Fout bij