RES: [PHP-DB] input field validation

2008-05-12 Thread Thiago Pojda
It'd be simpler to use isNaN() Thiago Henrique Pojda Desenvolvimento Web +55 41 3033-7676 [EMAIL PROTECTED] Excelência em Softwares Financeiros -Mensagem original- De: sahabettin akca [mailto:[EMAIL PROTECTED] Enviada em: domingo, 11 de maio de 2008 14:31 Para: php-db@lists.php.net As

RES: [PHP-DB] Shopping cart session handling

2008-05-05 Thread Thiago Pojda
Forwarding to the correct mailing list. You should get flames...*cough* I mean, answers here :) Regards, Thiago -Mensagem original- De: Ron Piggott [mailto:[EMAIL PROTECTED] Enviada em: domingo, 4 de maio de 2008 19:35 Para: PHP DB Assunto: [PHP-DB] Shopping cart session handling I am w

RES: [PHP-DB] resources and resource types

2008-03-31 Thread Thiago Pojda
[top posting warning] You still did not RTFM as Stut told you 4 days ago. I'm pasting here the entire conversation with the subject "Resource id #5": -Mensagem original- De: Stut [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 27 de março de 2008 15:14 Para: Richard Dunne Cc: php-db@

[PHP-DB] RES: [PHP] mysql joins

2008-03-25 Thread Thiago Pojda
not sure how timestamps work in MySQL, but I've written this in Oracle: CREATE TABLE USaR ( UsID char(255) null, Firstname char(255) NULL, Surname char(255) NULL, Tel char(255) NULL, Cell char(255) NULL, Email char(255) NULL ) / CREATE TABLE Tracker( UsID CHAR(255) NULL, Points CH

RES: [PHP-DB] MySQL replication delaying issue

2008-02-26 Thread Thiago Pojda
That's ok, good luck with your problem. Perhaps this could help :) http://forums.mysql.com/read.php?26,197734,197734#msg-197734 _ De: Lasitha Alawatta [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 26 de fevereiro de 2008 14:44 Para: Thiago Pojda Cc: php-db@lists.ph

RES: [PHP-DB] MySQL replication delaying issue

2008-02-26 Thread Thiago Pojda
I did not say: do not ask on this list. I said: you would get BETTER answers if you asked on a MySQL list. _ De: Lasitha Alawatta [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 26 de fevereiro de 2008 13:47 Para: Thiago Pojda Assunto: RE: [PHP-DB] MySQL replication delaying issue

RES: [PHP-DB] MySQL replication delaying issue

2008-02-26 Thread Thiago Pojda
Not trying to be an ass, but wouldn't you get better answers if you asked in a MySQL list? I work with PHP, but have near to 0 experience with MySQL. _ De: Lasitha Alawatta [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 26 de fevereiro de 2008 12:50 Para: php-db@lists.php.net; [EMA

RES: [PHP-DB] PHP, MySQL and Lookups

2008-02-26 Thread Thiago Pojda
Lemme see if I get this right: You could just do this: UPDATE userPW SET field1=$satinized_post_field1, field2=$sanitized_post_field2 WHERE userid=$userId and password=$userPw if (mysql_affected_rows($conn) > 0){ echo "updated" }else{ echo "error: ".mysql_error($conn); } http:/

RES: [PHP-DB] INSERT query with Primary and foreign key

2008-02-26 Thread Thiago Pojda
This is more SQL than PHP, how did you create your constraints? Did you set insert on CASCADE? -Mensagem original- De: Nasreen Laghari [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 25 de fevereiro de 2008 22:15 Para: php-db@lists.php.net Assunto: [PHP-DB] INSERT query with Primary

RES: [PHP-DB] How to recognize which 'case' is being echoed by switch statement

2008-02-22 Thread Thiago Pojda
Quite sure this is not what you mean: > $page = case; > if ( $page = "contact" ) { but instead > $page = case; > if ( $page == "contact" ) { -Mensagem original- De: Stut [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 22 de fevereiro de 2008 09:31 Para: Tim Daff Cc: php-db@l