I don´t know if this is the correct place to ask this questions but I haver
some doubts about using mysqli class in php. I am designing a web place using
wamp2 (php5, mysql 5.0.x ). My databases have been done using phpmyadmin so
they are "normal" mysql, I mean that I have done nothing with
s is a Singleton Pattern, but it doesnt work.
I want to obtain only one instance of db class but when I do this...:
$conexiondb=db::getInstancia();
$conexiondb=db::getInstancia();
In the two calls I get a new db object.
Could you please tell me if there is anything wrong?
Thanks.
alvaro
-
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
&function getInstancia(){
if (!isset($this))
$_miInstancia=new db();
return $_miInstancia;
}
}
I think that the problem is that the var _miInstance is not static and I
dont know how to do it.
Could you please tell me if there is anything wrong?
Thanks.
Alvaro
--
PHP Genera
&function getInstancia(){
if (!isset($this))
$_miInstancia=new db();
return $_miInstancia;
}
}
I think that the problem is that the var _miInstance is not static and I
dont know how to do it.
Could you please tell me if there is anything wrong?
Thanks.
Alvaro
--
PHP Genera
ot;))
return false;
}
function &getInstancia(){
static $miInstancia;
if (!get_class($miInstancia) == 'db')
$miInstancia=new db();
return $miInstancia;
}
and the call to this class is the next:
$conexiondb1=&db::getInstancia();
$conexiondb2=&db::getInstancia();
In the second call
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
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 somet
I have installed PHP4.0.5 in a Red Hat Linux 6.0 with Apache.
When I run the test no problem, all is OK, but when I run a html index file in
Netscape ( LocalHost )
whith a single code like this
nothing was display, nothing.
When I change the code for an know error for example Netscape prin
Mr . John Vanderbeck
None of both codes works, all this test were do.
The Netscape ingnore all the tags with \n";
?>
Some systems are configured to not allow the shorthand "http://gamedesign.incagold.com/)
- GameDesign, the industry source for game design and development issues
ract($_SERVER);
extract($_ENV);
extract($_COOKIE);
}
}
---
Alvaro Zuniga
Information Technology Professional
(337) 654 6515
www.zunitek.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi guys,I am new to PHP and I am writing my forst scripts, so maybe this quesetion
is a kinda stupid, but it is driving me crazy, can you tell meHow can I set a line
break in long line of my code?.
thanks in advance!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Hi guys,I am new to PHP and I am writing my first scripts, so maybe this question
is a kinda stupid, but it is driving me crazy, can you tell me How can I set a line
break in longs line of my code?.
thanks in advance!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
13 matches
Mail list logo