Thank you to you them all
"Curt Zirzow" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
* Thus wrote Jonathan Pitcher ([EMAIL PROTECTED]):
> Alvaro,
>
> To redirect use the header function (http://www.php.net/header)
>
> The call would be something like:
>
> header("Location: ano
Hi!
I'm a beginner. I want to redirect from one php page to another php page and
I dont know what method to use.
How can I do it?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've found the solution myself.
The db class is the next:
class db{
function db (){
// funcion que se conecta con la BBDD
$result = @mysql_pconnect("inforalv", "discoteca", "password");
if (!$result)
return false;
if ([EMAIL PROTECTED]("discoteca"))
return false;
}
function &getInstancia(){
stat
I want to obtain only one instance of one class. In other to do that, I call
to a static method, that creates the instance(if it doesnt exit) or returns
the reference of the instance.
The call to the static method is the next:
$conexiondb=db::getInstancia();
Well, but if I call to db::getInsta
I want to obtain only one instance of one class. In other to do that, I call
to a static method, that creates the instance(if it doesnt exit) or returns
the reference of the instance.
The call to the static method is the next:
$conexiondb=db::getInstancia();
Well, but if I call to db::getInsta
Ok,
I correct the two mistakes but it doesnt works yet.
What is character & for?
Alvaro
- Original Message -
From: "Greg Beaver" <[EMAIL PROTECTED]>
To: "Alvaro Martinez" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, August 26, 200
I have written this code:
class db{
var $_miInstancia;
function db (){
// funcion que se conecta con la BBDD
static $miInstancia;
$this->_miInstancia=&$miInstancia;
$result = @mysql_pconnect("inforalv", "discoteca", "password");
7 matches
Mail list logo