[PHP-DB] Re: Tables

2004-08-24 Thread Ustimenko Alexander
1) 5$ :) 2) It`s not for php.db list 3) May be: class field_commander { var $value; var $name; var ... function field_commander($label, $width, $name, ...) { if (isset($_POST[$this-])) { $this-echo_input(); } else {

[PHP-DB] More than 2 rows

2004-08-24 Thread Hafidz Abdullah
Hi again. Ths time, the help I need is on making rows with more than 2 columns with checkboxes. The output would look something like: Accident Emergency Equipment 8.6 Electrocardiography accessoriesx 12.8 Incontinence stoma aidsx 1.1 Ambulances rescue vehicle

Re: [PHP-DB] Global Peace output

2004-08-24 Thread William Tarazona
Hi! Do the addresses begin with http:// If not, I think the exact protocol must be specified in order to work!..good luck! - Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage!

[PHP-DB] Text area

2004-08-24 Thread Hafidz Abdullah
Hi again, everyone. I also have a problem creating my text area. I meant to do a text area (measuring 5 rows by 70 columns) which accompanies the words: First 50 words are free. Subsequent 50 words or part thereof, $50 will be charged: function write_textarea() { return input type=textarea

Re: [PHP-DB] Text area

2004-08-24 Thread Terry Riley
Hafidz Textarea is not a classic input type. Try: function write_textarea() { return textarea rows=5 cols=70 name=/textarea; } - Original Message - Hi again, everyone. I also have a problem creating my text area. I meant to do a text area (measuring 5 rows by 70

Re: [PHP-DB] Text area

2004-08-24 Thread Ignatius Reilly
You may profitably investigate PEAR Quickform. Nice client-side and server-side validation functions to do just that. HTH _ - Original Message - From: Hafidz Abdullah [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 10:43 AM Subject: [PHP-DB]

[PHP-DB] joined tables

2004-08-24 Thread neil
I am no database guru and I am also new to php/mysql I want to be able to store data where one of the fields could have multiple values which are stored in another table eg. the first table is called family with a field called name which contains family names the second table is called members

[PHP-DB] Re: joined tables

2004-08-24 Thread Ustimenko Alexander
1) No. You must add third column that unically describes a person (primary key). E.g. there will more than one john smith. 2) And my first answer is the answer on your first question: table - fammem personidfamid memid 111 213 3 32 4 454

RE: [PHP-DB] Text area

2004-08-24 Thread Gary Every
You need to add slashes to your return: Return input type=textarea rows=\5\ cols=\70\ name=\\; Or use single quotes: Return 'input type=textarea rows=5 cols=70 name='; Gary Every Sr. UNIX Administrator Ingram Entertainment Inc. 2 Ingram Blvd, La Vergne, TN 37089 Pay It Forward! -Original

[PHP-DB] myslqi documentation

2004-08-24 Thread aRZed
Hy! Does anybody know a more precise documentation on mysqli then that on zend.com? To know only the public methods of a class is probably not enough to extend it, or to know what exactly it does. A would look like in php-class like there is for the Exception-class would by nice. thx for help

[PHP-DB] Trap error

2004-08-24 Thread Mário Gamito
Hi, I have this form to submit a string to a postgreSQL table. This table has UNIQUE property, so if someone tries to insert the same value more than once, PHP says: Warning: pg_exec(): Query failed: ERROR: duplicate key violates unique constraint urls_negados_url_negado_key . in

Re: [PHP-DB] Trap error

2004-08-24 Thread John Holmes
From: Mário Gamito [EMAIL PROTECTED] I have this form to submit a string to a postgreSQL table. This table has UNIQUE property, so if someone tries to insert the same value more than once, PHP says: Warning: pg_exec(): Query failed: ERROR: duplicate key violates unique constraint