Re: [PHP] open php from

2003-08-29 Thread Alvaro Martinez
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

[PHP] open php from

2003-08-29 Thread Alvaro Martinez
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

Re: [PHP] var static

2003-08-28 Thread Alvaro Martinez
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

[PHP] var static

2003-08-28 Thread Alvaro Martinez
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

[PHP] var static

2003-08-28 Thread Alvaro Martinez
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

[PHP] Re: php and var statics

2003-08-26 Thread Alvaro Martinez
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

[PHP] php and var statics

2003-08-26 Thread Alvaro Martinez
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");