Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [PHP-DB] INSER INTO not working!
Please, take into consideration that in Postgresql you have to quote
table name if there are capitals in the name. Thus, if the table name is
REV then you have to quote it like:

$sqlstring = "INSERT INTO \"REV\" (revision) VALUES ($revision)";

Aurel


On Thu, 2005-05-12 at 11:09 +0300, Mihai Frisan wrote:
> Hi,
> 
> try $sqlstring = "INSERT INTO REV (revision) VALUES ($revision)";
> 
> Mihai
> 
> MIGUEL ANTONIO GUIRAO AGUILAR wrote:
>  



Report this thread to moderator Post Follow-up to this message
Old Post
Constantin Brinzoi
05-13-05 09:00 PM


RE: [PHP-DB] INSER INTO not working!
Acctually my problem was in that I was using the name of the table in
uppercase rather than in lowercase. So MySQL was looking for table REV
instead of rev. So for MySQL, REV and rev are very different tables!!

Regards,

Miguel Guirao

-----Original Message-----
From: Constantin Brinzoi [mailto:aurel@irecson.ro]
Sent: Jueves, 12 de Mayo de 2005 05:11 a.m.
To: Mihai Frisan
Cc: MIGUEL ANTONIO GUIRAO AGUILAR; PHP
Subject: Re: [PHP-DB] INSER INTO not working!


Please, take into consideration that in Postgresql you have to quote
table name if there are capitals in the name. Thus, if the table name is
REV then you have to quote it like:

$sqlstring = "INSERT INTO \"REV\" (revision) VALUES ($revision)";

Aurel


On Thu, 2005-05-12 at 11:09 +0300, Mihai Frisan wrote:
> Hi,
>
> try $sqlstring = "INSERT INTO REV (revision) VALUES ($revision)";
>
> Mihai
>
> MIGUEL ANTONIO GUIRAO AGUILAR wrote:
> 
is added to the table, but is not working from my PHP page. 

Report this thread to moderator Post Follow-up to this message
Old Post
Miguel Guirao
05-16-05 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP DB archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 10:10 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.