On Sun, 2009-04-19 at 21:55 -0400, Paul M Foster wrote:
> On Mon, Apr 20, 2009 at 12:54:27AM +0100, abdulazeez alugo wrote:
>
> >
> > Hi guys,
> >
> > I have a function inside which I set alocal variable to store a result. Can
> > I access this variable in another function? if yes then how?
> >
Ashley Sheridan wrote:
On Fri, 2009-04-17 at 12:54 -0400, Bob McConnell wrote:
From: tedd
At 10:43 PM -0700 4/16/09, Jim Lucas wrote:
Have your elements setup like such:
Room #1
Room #2
Room #3
Room #4
Room #5
Then on your processing page, you know that you have 5 rooms, 1 - 5.
With th
Thanks Chris. It has been a while since I used this command. Ron
On Mon, 2009-04-20 at 13:27 +1000, Chris wrote:
> Ron Piggott wrote:
> > Where $date_reference is 2009-04-18 the following code gives me a day of
> > 1969-12-30. How do I get it to be 2009-04-17?
> >
> > $previous_date = strto
Thanks for your idea.
-Original Message-
From: Phpster [mailto:phps...@gmail.com]
Sent: Friday, April 17, 2009 5:39 PM
To: Ramesh Marimuthu (WT01 - Telecom Equipment)
Cc: ; ;
Subject: Re: [PHP] pup
On Apr 17, 2009, at 1:06, wrote:
>
> Thanks Jim. Is there a way to get the value of t
Ron Piggott wrote:
Where $date_reference is 2009-04-18 the following code gives me a day of
1969-12-30. How do I get it to be 2009-04-17?
$previous_date = strtotime("-1 days", $date_reference);
$previous_date = date('Y-m-d', $previous_date);
echo $previous_date; outputs 1969-12-30
Ron
Ron Piggott wrote:
Where $date_reference is 2009-04-18 the following code gives me a day of
1969-12-30. How do I get it to be 2009-04-17?
$previous_date = strtotime("-1 days", $date_reference);
$previous_date = date('Y-m-d', $previous_date);
Slightly wrong syntax.
$previous_date = strtotime
Where $date_reference is 2009-04-18 the following code gives me a day of
1969-12-30. How do I get it to be 2009-04-17?
$previous_date = strtotime("-1 days", $date_reference);
$previous_date = date('Y-m-d', $previous_date);
echo $previous_date; outputs 1969-12-30
Ron
On Mon, Apr 20, 2009 at 12:54:27AM +0100, abdulazeez alugo wrote:
>
> Hi guys,
>
> I have a function inside which I set alocal variable to store a result. Can I
> access this variable in another function? if yes then how?
>
> function tbl1($entrytitle, $entrytext)
>
> {
>
> global $conn;
>
abdulazeez alugo wrote:
Hi guys,
I have a function inside which I set alocal variable to store a result. Can I
access this variable in another function? if yes then how?
No, you can't. You either need to pass it back (recommended) or make it
global (not recommended).
function tbl1($entryt
Hi guys,
I have a function inside which I set alocal variable to store a result. Can I
access this variable in another function? if yes then how?
function tbl1($entrytitle, $entrytext)
{
global $conn;
$result= mysql_query("INSERT INTO tbl1(tbl1_id, title, text)
VALUES('NULL', '$entryti
Is it right that 'self' in inherited method still points to the parent?
If it is, can you explain it? It makes me worry :)
A piece of code below for example
get_instance();
$c = $a->get_another_instance();
echo $a->get_name(),"\n";
echo get_class($b),"\n";
echo get_class($c),"\n";
?>
--
PHP
Hello, I have something like this:
$stmt = $this->_dbh->prepare("INSERT INTO DOG (name_dog, race_dog, id_vet)
VALUES (?, ?, ?)");
$stmt->bindParam(1, $this->getNameDog() );
$stmt->bindParam(2, $this->getRaceDog());
$stmt->bindParam(3, ?
12 matches
Mail list logo