Awhile ago i built a login script using php/mysql. At the end of the script i called a function header(location : (I don't remember exact sytax). This would redirect the page.
Recently i have rebuilt this page using Motoma's Tutorial on Data Abstraction Layers (Great lesson for beginers) this put all of the connection/mysql interactions into a class(?) on another page (DAL.php) that i would then include.
The problem now is i get an error saying Header already sent by DAL.php. Is there another efficient way to redirect?
Recently i have rebuilt this page using Motoma's Tutorial on Data Abstraction Layers (Great lesson for beginers) this put all of the connection/mysql interactions into a class(?) on another page (DAL.php) that i would then include.
The problem now is i get an error saying Header already sent by DAL.php. Is there another efficient way to redirect?
Comment