Re: Re: PostgreSQL - PHP insert deleted from database immediately? - Mailing list pgsql-general

From John Clark L. Naldoza
Subject Re: Re: PostgreSQL - PHP insert deleted from database immediately?
Date
Msg-id 3AF770DA.66DEE407@ntsp.nec.co.jp
Whole thread Raw
In response to Re: PostgreSQL - PHP insert deleted from database immediately?  (Ricardo Campos Passanezi <riccp@ige.unicamp.br>)
List pgsql-general
Sami wrote:
>
>  > The insert statement executed from php is:
> > >
> > >      $otsikko = "Insert testi";
> > >      $teksti = "Koeteksti 1";
> > >
> > >      $sqllause = "INSERT INTO jutut (otsikko,teksti) VALUES ('";
> > >      $sqllause = $sqllause . $otsikko . "','" . $teksti . "');";

Hmmm....  Looks a bit wierd..;-(

$sqllause = "INSERT INTO jutut (otsikko,teksti) VALUES
('$otsikko','$teksti');";

Should work...;-)

How did you execute the SQL query with PHP?
> >
> > Have you tried without the ";"? Just like:
> >
> > $sqllause = "INSERT INTO jutut (otsikko,teksti) VALUES ('";
> > $sqllause = $sqllause . $otsikko . "','" . $teksti . "')";
>
> Yes, tried it, didn't work.
> Still at a loss as to what the problem is.
> I haven't even had the time to figure out a workaround if there is any as
> the problem is a pretty basic one.
>
> Could it possibly be a problem with the database configuration?
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

--
     /) John Clark Naldoza y Lopez                           (\
    / )    Software Design Engineer II                       ( \
  _( (_    _  Web-Application Development                    _) )_
 (((\ \>  /_>    Cable Modem Network Management System <_\  </ /)))
 (\\\\ \_/ /         NEC Telecom Software Phils., Inc.  \ \_/ ////)
  \       /                                              \       /
   \    _/  phone: (+63 32) 233-9142 loc. 3112            \_    /
   /   /  cellphone: (+63 919) 399-4742                     \   \
  /   / email: njclark@ntsp.nec.co.jp                        \   \

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: poor performance on 7.1 vs 7.0
Next
From: "John Clark L. Naldoza"
Date:
Subject: Database Recovery Help...