Re: [PHP-DB] RE: SELECT WHERE length of content question

2011-03-11 Thread Constantin Brinzoi
Do not forget to use TRIM function as well: LENGTH(TRIM(fax)) in order to elliminate leading and trailing spaces. Aurel - Original Message - From: "Geoffrey Pitman" To: Sent: Friday, March 11, 2011 7:59 PM Subject: [PHP-DB] RE: SELECT WHERE length of content question You should b

RE: [PHP-DB] query help

2010-11-17 Thread Constantin Brinzoi
Hey, You can also try PEAR module MDB2 to insert an array into a table. The function is: "executeMultiple". This works for other SQL queries too. Check this link please: http://pear.php.net/manual/en/package.database.mdb2.intro-execute.php Cheers, -Original Message- From: Artur Ejsmon

Re: [PHP-DB] Specific order by MySQL statement

2005-11-07 Thread Constantin Brinzoi
One possibility is to use codes for this filed, such as: 10 for Current; 20 for Completed; 30 for Withdrawn; 40 for Transferred. a.s.o. If you will discover other "states" of the field you can "insert" them apropriatelly (if you want Canceled state to be inserted and to be displayed last put the

Re: [PHP-DB] NOT NULL - newbie

2005-10-05 Thread Constantin Brinzoi
Hi! I think that "NOT NULL" comes together with "PRIMARY KEY" and not with "AUTO_INCREMENT". Follow this link http://dev.mysql.com/doc/mysql/en/create-table.html for detailed information about creating tables in MySQL. Have a nice day! Aurel On Wed, 2005-10-05 at 12:15 +0200, W Roothman wrote:

Re: [PHP-DB] INSER INTO not working!

2005-05-12 Thread Constantin Brinzoi
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 Fris

Re: [PHP-DB] Another question

2003-12-15 Thread Constantin Brinzoi
e browser.. this is how PHP works. > > Regards, > Muhammed. > > > - Original Message - > From: "Constantin Brinzoi" <[EMAIL PROTECTED]> > To: "Muhammed Mamedov" <[EMAIL PROTECTED]> > Sent: Monday, December 15, 2003 4:05 PM > Subject: Re:

[PHP-DB] Another question

2003-12-15 Thread Constantin Brinzoi
blem. TIA Constantin Brinzoi -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Problem with PHP_AUTH_USER

2003-12-15 Thread Constantin Brinzoi
_AUTH_USER; and the value is still there. How can I unregister this variable so that the authentication window appears again. I'm using apache 2.0.40, php 4.2.2 compiled as a module, RedHat Linux 9.0. Register globals is On. TIA Constantin Brinzoi. -- PHP Database Mailing List (http://www

[PHP-DB] SQL question

2003-12-11 Thread Constantin Brinzoi
I know it is possible to search a database like this: SELECT * FROM x_table WHERE name="%part_of_name%" but I don't know for sure the correct command. Could you tell me the right syntax? TIA Aurel. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p