Re: [PHP] redirect

2003-10-30 Thread alain dhaene
it works, thx Chris W. Parker [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] Pablo Zorzoli mailto:[EMAIL PROTECTED] on Wednesday, October 29, 2003 11:20 AM said: You cannot do any echo ; before header(location:..); maybe that's the problem. The solution would be to turn on

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

[PHP] redirect

2003-10-29 Thread alain dhaene
Hi, Is there in php something as a redirect to another page like in asp? e.g if(choice==1) response.redirect(page.php); response.redirect(page2.php); I have search in the manuel, but the only thing I find is something like header(Location: registratie.html); But I guess it's wrong

Re: [PHP] redirect

2003-10-29 Thread alain dhaene
But I get the following warning: Warning: Cannot modify header information - headers already sent by (output started at /home/schoolre/public_html/Hitek/Online/Registratie/registratieFuncties.php: 1) in /home/schoolre/public_html/Hitek/Online/Registratie/registratieData.php on line 30 In

Re: [PHP] redirect

2003-10-29 Thread alain dhaene
I have check my code. I haven't use a echo in my code. It's very strange. I will search more on the manule. thx Pablo Zorzoli [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] On Wed, 2003-10-29 at 16:17, alain dhaene wrote: But I get the following warning: Warning: Cannot

[PHP] data from database

2003-10-28 Thread alain dhaene
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 uitvoeren query);

[PHP] database

2003-10-27 Thread alain dhaene
Hi, I'm very new with php, so perhaps it's a silly question. I want a connection with a mysql database. This works. I can open, retrieve data, and close the database. But this happens in the same page. Now I want one page that has a function who's opening and close the

Re: [PHP] database

2003-10-27 Thread alain dhaene
I have try but I get the following error: Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/schoolre/public_html/Hitek/Online/connectie.php on line 16 Alain Jordan S. Jones [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] Alain, You can pass

Re: [PHP] database

2003-10-27 Thread alain dhaene
It works, Thx John Nichel [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] alain dhaene wrote: I have try but I get the following error: Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/schoolre/public_html/Hitek/Online/connectie.php