[PHP-DB] DB Modeling . Help!

2012-10-05 Thread Bruno Sandivilli
Hi, some week's ago i was having a querying problem, it was i nightmare. Now i'm i have the same modeling problem. But his time i've stopped to think before. Right Here we go: It's 'simple'. I have a simple datagrid (5 columns x 50 rows). Each row have a label and the 5 columns values.How can i s

Re: [PHP-DB] Re: Many columns (as FK) vs 3x more Columns (in the same table)

2012-09-20 Thread Bruno Sandivilli
We are getting closer. But I'll give some image to better ilustrate: http://177.71.185.219/stable/anexos/505b18fc713f8imagem.png this is my table in Flex, the fields are in portuguese so 'ignore' it. 2012/9/19 Matt Pelmear > Bruno, > > This schema layout seems a lit

Re: [PHP-DB] Re: Many columns (as FK) vs 3x more Columns (in the same table)

2012-09-19 Thread Bruno Sandivilli
>> On 9/18/2012 8:52 AM, Bruno Sandivilli wrote: >> >>> Hi, i strugling to decide what is the best choice: >>> >>> I have a 15 row x 3 columns Flash DataGrid, it means, for each row i >>> have 3 >>> values. >>> To represent this in

[PHP-DB] Re: Many columns (as FK) vs 3x more Columns (in the same table)

2012-09-19 Thread Bruno Sandivilli
Anyone? Please. 2012/9/18 Bruno Sandivilli > Hi, i strugling to decide what is the best choice: > > I have a 15 row x 3 columns Flash DataGrid, it means, for each row i have > 3 values. > To represent this in my Database, I could: > > >1. Create 2 Tables : A Value

[PHP-DB] Many columns (as FK) vs 3x more Columns (in the same table)

2012-09-18 Thread Bruno Sandivilli
Hi, i strugling to decide what is the best choice: I have a 15 row x 3 columns Flash DataGrid, it means, for each row i have 3 values. To represent this in my Database, I could: 1. Create 2 Tables : A Values table - with 3 columns ; and a Bill table (with 15 foreign keys, each one pointing

Re: [PHP-DB] Another PDO ?

2012-09-10 Thread Bruno Sandivilli
Imagine if you are building a generic database framework, so you (dont have, but) can generalize your queries functions and abstract some tables info. 2012/9/10 Graham H. > I think it's so that you could write functions as generically as possible. > So you don't have to pass in the number of co

[PHP-DB] Bruno Sandivilli deseja bater papo

2011-07-15 Thread Bruno Sandivilli
--- Bruno Sandivilli deseja manter contato com você de uma forma melhor usando alguns dos novos produtos mais legais do Google. Se você já tem Gmail ou o Google Talk, visite: http://mail.google.com/mail/b-bebbbe453e-848c4569fe

[PHP-DB] Bruno Sandivilli deseja bater papo

2011-07-15 Thread Bruno Sandivilli
--- Bruno Sandivilli deseja manter contato com você de uma forma melhor usando alguns dos novos produtos mais legais do Google. Se você já tem Gmail ou o Google Talk, visite: http://mail.google.com/mail/b-bebbbe453e-455c1cf2d9

[PHP-DB] Social NetWork Db

2011-05-06 Thread Bruno Sandivilli
Hi , i want to model a simple db for user with a social network. Cold anyone help me? Thanks!

[PHP-DB] Fwd: Object Class Type

2011-03-23 Thread Bruno Sandivilli
-- Forwarded message -- From: Bruno Sandivilli Date: 2011/3/23 Subject: Object Class Type To: php-db-sc.1300557321.bdjnjaejefnonigedkec-bruno.sandivilli=gmail.com@ lists.php.net Hi all, could someone give me a help? I have this scenario: I want to have a table with objects that

Re: [PHP-DB] FW: Oracle Finalizes Acquisition of Sun

2010-01-29 Thread Bruno Fajardo
2010/1/29 listread : > As an open source product, is the code in the public domain? > > If so, what's to prevent someone(s) from using it as a starting point and > creating YourSQL? Nothing, that's why some guys created MariaDB - http://planetmariadb.org/ and http://askmonty.org/wiki/index.php/Mar

Re: [PHP-DB] dl () problem

2010-01-26 Thread Bruno Fajardo
2010/1/26 Murat BEYHAN : > yes many times I restart apache If I didn't try it, why I will sent such a > stupid questions!!! But still I could not solved the problem. > Keep acting like that and you certainly won't get any help from the list... > > On Tue, 26 Jan 2010 16:58:06 +0100, Christoph Ros

Re: [PHP-DB] Automatic logoff

2010-01-25 Thread Bruno Fajardo
2010/1/25 listread : > Has anyone considered a way to run a script or automatically access a php > page when a user leaves a site without logging off? > > The idea is to gracefully end that user's session. The built-in garbage collector is not sufficient for your app? Additionally, you can configu

Re: [PHP-DB] Fun with MySQL collation, HTML charset and PHP utf8_encode

2008-04-07 Thread Bruno Lustosa
PHP 5 was released. http://www.php.net/archive/2007.php Check the PHP 4 end of life announcement. -- Bruno Lustosa <[EMAIL PROTECTED]> ZCE - Zend Certified Engineer - PHP! http://www.lustosa.net/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] PHP + PostgreSQL: invalid byte sequence for encoding "UTF8"

2007-07-21 Thread Bruno Lustosa
x27;t the case normally. By default, I think at least apache sends the content-type as iso8859-1. -- Bruno Lustosa <[EMAIL PROTECTED]> ZCE - Zend Certified Engineer - PHP! http://www.lustosa.net/

Re: [PHP-DB] multiple queries in the same "request"

2005-06-20 Thread Bruno Ferreira
mi hits per day. the chance that two pairs of queries will run consecutively is imense. Then you need to use transactions, which fill your purpose :) I presume you're using MySQL or Postgres, google for START TRANSACTION and COMMIT. -- Bruno Ferreira

Re: [PHP-DB] multiple queries in the same "request"

2005-06-20 Thread Bruno Ferreira
eral queries at once? any workaround? You can't send multiple queries in an SQL statement. You can just split that in two separates queries. It's not really slower by any practical means because the DB system would have to execute them both anyway. -- Bruno Ferreira --- [This E-

Re: [PHP-DB] Issue with date() function...

2005-06-10 Thread Bruno Ferreira
ate("Y/m/d"); You database system doesn't like using "-" as a separator in dates, thus thinking it's a minus sign and doing the appropriate math. Just use slashes and you'll probably be OK. -- Bruno Ferreira --- [This E-mail scanned for viruses by Declu

Re: [PHP-DB] Page refresh question

2005-06-09 Thread Stéphane Bruno
You may also open a sized new window where the update takes place and the user has a confirmation and a close button. Stéphane On Thu, 2005-06-09 at 04:32, Bobo Wieland wrote: > ...or if everything else fail, do it the ugly-hack style and us a > frameset with an 1 px wide frame where you update

Re: [PHP-DB] Ora 10g, PHP 4 and Apache 2

2004-12-29 Thread Bruno Ferreira
tension is deprecated, and that php_oci8.dll (or .so, in your case) should be used. See http://www.php.net/manual/en/ref.oracle.php, that's were I looked. -- Bruno Ferreira --- [This E-mail scanned for viruses by Declude Virus] -- PHP Database Mailing List (http://www.php.net/) To unsubscri

Re: [PHP-DB] Pagination

2004-12-16 Thread Bruno B B Magalhães
age_from = (($page*$itens)-$itens); <- NEXT PAGE $this->page_to = ($page*$itens); <- PAGE AFTER return $results; } = The important thing here is how you build the limit statement: " LIMIT (($page_numbe

Re: [PHP-DB] A language question

2004-12-08 Thread Bruno B B Magalhães
Thanks a lot Koert and Norland! Do you know any GOOD multilingual system just to have a look at, how they handles those versions? Best Regards, Bruno B B Magalhaes On Dec 8, 2004, at 12:06 PM, Bastien Koert wrote: the first way is better, the second creates a wider table, and what happens when

Re: [PHP-DB] A language question

2004-12-08 Thread Bruno B B Magalhães
Thanks a lot Koert and Norland! Do you know any GOOD multilingual system just to have a look at, how they handles those versions? Best Regards, Bruno B B Magalhaes On Dec 8, 2004, at 12:06 PM, Bastien Koert wrote: the first way is better, the second creates a wider table, and what happens when

[PHP-DB] A language mather

2004-12-08 Thread Bruno B B Magalhães
| contentTitle_en_uk | contentBody_en_uk The second option would be less space consuming? Any others ideas? Best Regards. Bruno B B Magalhaes -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] A language question

2004-12-08 Thread Bruno B B Magalhães
| contentTitle_en_uk | contentBody_en_uk The second option would be less space consuming? Any others ideas? Best Regards. Bruno B B Magalhaes -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Re: PHP vs ASP

2004-11-27 Thread Bruno B B Magalhães
Take a look at: http://www.oracle.com/technology/pub/articles/hull_asp.html Regards, Bruno B B Magalhães -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Reverse (or backward?) Infinity Loop

2004-10-20 Thread Bruno B B Magalhães
=> [field07] => [field08] => [field09] => [field10] => ) [3] => Array ( [categoryId] => 1 [categoryParentId] => 0 [translationId] => 123456789 [translation

[PHP-DB] Reverse (or backward?) Infinity Loop

2004-10-19 Thread Bruno B B Magalhães
3 • Category 4 • Category 5 A reverse (or backward) loop! We need to get the last category and then follow the ParentId until the 0 ParentId. Have anybody made this before (I hope so)? Many Thanks, Bruno B B Magalhaes -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP-DB] CMS Translation Systen: DB Desiging

2004-10-18 Thread Bruno B B Magalhães
Hi, I do have a flat file with all the translations for the interface and everything, but the problem is de dynamic content that must be multilingual... Regards, Bruno On Oct 18, 2004, at 5:29 AM, M Saleh EG wrote: I'd always preffer to keep language stuff in files instead of DB. A questi

[PHP-DB] CMS Translation Systen: DB Desiging

2004-10-17 Thread bruno b b magalhaes
tionId AND translations.translationLanguage='en-uk' AND translations.translationStatus = 1 AND categories.categoryModulePath='products' Any better idea to handle that? Regards, Bruno B B Magalhaes -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] undefined function

2004-05-21 Thread Bruno Ferreira
Miguel Guirao wrote: First, I do not have that line in my php.ini file. In what section should I add it? Anywhere, but best place as long as organization is concerned would be under the "Dynamic extensions" label. Bruno Ferreira PS - You should check the default php.ini

Re: [PHP-DB] undefined function

2004-05-21 Thread Bruno Ferreira
sql.dll" isn't commented out. Things should go back to normal. Bruno Ferreira --- [This E-mail scanned for viruses by Declude Virus] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] date and time problem

2004-05-15 Thread Bruno Ferreira
2004 02:00 (probably because we are 2 hours ahead of GMT) Any ideas please? Thanks K Well, a solution could easily be arranged to use both fields, but really, the best thing to do is to just use a DATETIME field in MySQL instead of using both DATE and TIME fields. That will save you a lo

Re: [PHP-DB] Linux/PHP/Access Database - oh boy :(

2004-05-12 Thread Bruno Ferreira
em in the Firebird db (SELECT from one side, INSERT into the other). Should be pretty painless to do this every once in a while. Bruno Ferreira --- [This E-mail scanned for viruses by Declude Virus] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] looking for a variable

2004-05-06 Thread Bruno Ferreira
er IN? No :\ What did you want to do with that number? Maybe there is some other way around Bruno Ferreira --- [This E-mail scanned for viruses by Declude Virus] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] SQL question!

2004-05-03 Thread Bruno Braga
: List of users: * User1 See comments ( 32 comment in database ) * User2 See coments (13 comments in database ) * etc. thanks in advanced. Bruno

[PHP-DB] diference between == and ===

2004-05-03 Thread Bruno Braga
Hi guys.. Wich is the diference between if ($var == '1') or if ($var === '1') == means equality and what does the === means ?! Thanks! Bruno

Re: [PHP-DB] Image / file uploader

2004-04-29 Thread Bruno Ferreira
tc action=\"$_SERVER[PHP_SELF]\" etcetc"; When you're using an associative array inside a string, you don't need to put quotes refer to its textual index. Bruno Ferreira --- [This E-mail scanned for viruses by Declude Virus] -- PHP Database Mailing List (http://

Re: [PHP-DB] Multiple work mySql database search.

2004-04-21 Thread Bruno Ferreira
ORs like this: Searching for all words in a field: WHERE (field LIKE '%something% AND field LIKE '%other_thing') Searching for any of the words in a field: [read above in the previous question] Bruno Ferreira --- [This E-mail scanned for viruses by Declude Virus] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] using a define value

2004-04-20 Thread Bruno Ferreira
uot;.ERROR."._$myerror.""; It not works. Does now ;) Bruno Ferreira --- [This E-mail scanned for viruses by Declude Virus] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] mysql multi-row insert limitations?

2004-04-16 Thread Bruno Ferreira
e') --> Enter's three rows in the database? The limit is probably set somewhere else, like the size of the string that you can pass to mysql_query() or something similar. Even then, why don't you just split the records in blocks of X and insert them one block at a time?

Re: [PHP-DB] get rid of the HTML tags

2004-04-12 Thread Bruno Ferreira
Bruno Braga wrote: Is there any function that retrieves only the string without the html tags?! --> Hello world this is a test link with a image strip_tags() --- [This E-mail scanned for viruses by Declude Virus] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: h

[PHP-DB] get rid of the HTML tags

2004-04-12 Thread Bruno Braga
Hi all. I have this string: $my_string = "hello worldthis is a test for a link with a image Is there any function that retrieves only the string without the html tags?! --> Hello world this is a test link with a image Thx for ya help Bruno, Portugal

Re: [PHP-DB] Large Arrays in a batch procedure

2004-04-08 Thread Bruno Ferreira
o PHP involved here, you just use some SQL interface to your server... Bruno Ferreira --- [This E-mail scanned for viruses by Declude Virus] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] PHP Arrays

2004-04-04 Thread Bruno Ferreira
Martin Oettinger wrote: Does anyone know up to which level arrays in variables are possible? Is there a limit? $foo[1][2][3][4][5][6] ... ? I feel the right answer is "why do you ask"? It's either some very complex thing you're doing there, or you're doing it t

Re: [PHP-DB] v4.2.3 compliant sybase_set_message_handler

2004-03-24 Thread Bruno Ferreira
e that as well into your PHP 4.2 sources. Anyway, I should mention that you're treading on very thin ground there... there's a lot that can go wrong :) Bruno Ferreira PS - I am not a PHP-source programmer, so someone here might have better advice than mine. --- [This E-mail s

Re: [PHP-DB] Store a File (any type) in MySQL

2004-03-21 Thread Bruno Santos
-- - .-'''''-. .' `. : : : : : _/| : Bruno Santos : =/_/ : [EMAIL PROTECTED] `._/ | .' ( / ,|...-'Pagina Pessoal

Re: [PHP-DB] An if-statement in a "while(list("

2004-03-21 Thread Bruno Ferreira
" Any suggestione to me on showing a graphic with a link when $mail is different from null? Build the inside of your loop like this... print("$navn "); if ( $mail!='' ) then [print the icon here] else echo "$mail"; Bruno Ferreira --- [Th

Re: [PHP-DB] Processing a fetched external page

2004-03-18 Thread Bruno Ferreira
ost you my own brute-force "get all text from a webpage" script :) Bruno Ferreira --- [This E-mail scanned for viruses by Declude Virus] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] OK, ahí voy...

2004-03-18 Thread Bruno Ferreira
as to what you'll do next. Spamming the same questions to several lists doesn't help the matter, either. Bruno Ferreira --- [This E-mail scanned for viruses by Declude Virus] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] MySql query

2004-03-17 Thread Bruno Ferreira
Matt Matijevich wrote: This is probably a question for for a mysql list but I figured someone out here knows the answer. [snip] SELECT * FROM sometable WHERE 1 SELECT * FROM sometable Just that :) (do I hear you slapping your forehead? :) Bruno Ferreira. --- [This E-mail scanned for viruses

Re: [PHP-DB] SQL Server Query Failed

2004-03-17 Thread Bruno Ferreira
david wrote: Hello there! I have just about driven myself crazy with an odd intermittent problem. [snip] I'd first start by turning on all logging I could in the SQL server so that I could see what's happening straight from the horse's mouth... Bruno Ferreira --- [This

[PHP-DB] File Upload

2004-03-16 Thread Bruno Santos
Hello all Can someone tell me why PHP give all this erros, when it really opens the file and displays all it's contents ? Uploading files... File Type: text/plain UP: /tmp/teste.txt UP2: teste.txtFile uploaded successfully *Warning*: fopen(teste.txt): failed to open stream: Permission denied i

Re: [PHP-DB] How to redirect after a valid login

2004-03-15 Thread Bruno Ferreira
he DB.php file. Look into that, and replace require() and include() with require_once() and include_once() to avoid this kind of conflict. Bruno Ferreira --- [This E-mail scanned for viruses by Declude Virus] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP-DB] Sending a hashed password on mysql_connect

2004-03-14 Thread Bruno Ferreira
could create an IPSec (or maybe an SSH) tunnel to the other machine and redirect it to a local port. As far as I can tell, there's no way to create a secure MySQL connection via PHP... Bruno Ferreira --- [This E-mail scanned for viruses by Declude Virus] -- PHP Database Mailing List (ht

Re: [PHP-DB] Re: Sort Order Description

2004-03-11 Thread Bruno Ferreira
rder']; if (! $sort_order) {$sort_order = "desc";} First things first. That code (it seems to me) is vulnerable to SQL injection. Better fix that first... Bruno Ferreira --- [This E-mail scanned for viruses by Declude Virus] -- PHP Database Mailing List (http://w

Re: [PHP-DB] ODBC support

2004-03-11 Thread Bruno Ferreira
er information. Bruno Ferreira --- [This E-mail scanned for viruses by Declude Virus] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] No data being put into the DB

2004-03-04 Thread Bruno Santos
Hello. I'm not sure, but, witch version of php are u using ? replace all the instances of $_POST[varname] with $HTTP_POST_VARS[' varname '] and see what happens !!! Cheers Robert Sossomon wrote: I have a form: http://www.garlandcnorris.com/registration_tradeShow.html That then goes to this pag

[PHP-DB] Acessing a excel worksheet from a php site

2004-02-05 Thread Bruno Pereira
I'm making a site to a company and they have a excel worksheet where i have to get the data to a site in php. My question is simple, i think, how can i get it? Cumprimentos Bruno Pereira DSI [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP-DB] Help... PostgreSQL on Windows 98!

2003-07-20 Thread bruno
Hi, I'm trying to use PostgreSQL on Windows98! Does anyone here succeded with it? Thanks Bruno (sorry.. my mistakes).

Re: [PHP-DB] Email confirmation?

2003-06-11 Thread Bruno Gimenes Pereti
Keep the context of the email in a variable, add the details of the product in each loop. Then you can call mail() with the complete order information. PS. Don´t you think it´s better to query the db only once asking the details for all the products ordered? Bruno Pereti. - Original Message

RE: [PHP-DB] mysql to cvs file to excel

2003-02-21 Thread Bruno Pereira
I had the some problem and someone told me this "What is your problem exactly? Have you investigated the MySQL manual under: LOAD DATA INFILE SELECT ... INTO OUTFILE ?" And it realy helped. Cumprimentos Bruno Pereira [EMAIL PROTECTED] -Original Message- From: Snijders, Ma

RE: [PHP-DB] TimeStamp format to date

2003-02-20 Thread Bruno Pereira
It's very good to see that a simple word "cumprimentos" can make a great discussion. :-) Cumprimentos Bruno Pereira [EMAIL PROTECTED] -Original Message- From: Hutchins, Richard [mailto:[EMAIL PROTECTED]] Sent: quinta-feira, 20 de Fevereiro de 2003 17:09 To: [EMAIL PRO

RE: [PHP-DB] TimeStamp format to date

2003-02-20 Thread Bruno Pereira
I'm portuguese, so i say bye in portuguese. If i want to call something you can be jure of one thing it wouldnt be "cumprimentos". But i wouldnt do that, cause you help me :-) Cumprimentos(Till next time), is the same. Bruno Pereira [EMAIL PROTECTED] -Original Message

[PHP-DB] TimeStamp format to date

2003-02-20 Thread Bruno Pereira
Good afternoon, Houston i have a problem. :-) Just to play a while. Is like this i have a field in MySql TIME_STAMP int(11) and he has a time stamp value (ex: 1045738710) and i want to make show it like a date format in the web. Can anyone help me on this...? Cumprimentos Bruno Pereira

[PHP-DB] Help with ADDUSER from linux

2003-02-18 Thread Bruno Pereira
How can i create a new user, with linux, apache and php? Like this, in a form i ask for the username and password, than somehow use the 'adduser' . Can someone help me? Cumprimentos Bruno Pereira [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscr

[PHP-DB] Erro na passagem de parametros

2003-02-17 Thread Bruno Pereira
a form in html to a php file. It should just show the value from the var but it is showing the interied code php. I think if some kind configuration of the httpd.conf file, but i dont no where? Thanks Cumprimentos Bruno Pereira [EMAIL PROTECTED] -- PHP Database Mailing List (http

[PHP-DB] Erro na passagem de parametros

2003-02-17 Thread Bruno Pereira
php file. It should just show the value from the var but it is showing the interied code php. I think if some kind configuration of the httpd.conf file, but i dont no where? Thanks Cumprimentos Bruno Pereira [EMAIL PROTECTED] -Original Message- From: Dimas Alberto Ayala Escobar [mailto

[PHP-DB] HELP, sendmail + mysql.

2003-02-04 Thread Bruno Pereira
this, the user to make a dialup conection has a user and a pass and for the sendmail has another, and, if there is any changes, when the user changes de user or pass from one can't at the same time change the user/pass from the other. can someone help me Cumprimentos Bruno Pereira [EMAIL

[PHP-DB] login script

2003-02-03 Thread Bruno Pereira
this, the user to make a dialup conection has a user and a pass and for the sendmail has another, and, if there is any changes, when the user changes de user or pass from one can't at the same time change the user/pass from the other. can someone help me Cumprimentos Bruno Pereira [EMAIL

RE: [PHP-DB] login script

2003-01-31 Thread Bruno Pereira
, the user to make a dialup conection has a user and a pass and for the sendmail has another, and, if there is any changes, when the user changes de user or pass from one can't at the same time change the user/pass from the other. can someone help me Cumprimentos Bruno Pereira [EMAIL

RE: [PHP-DB] simple mail attachment with php?

2003-01-27 Thread Bruno Pereira
No, you didn't get it? But cornelia es said, just told me that i have mistaken and put an ftp clss, my mistake. Cumprimentos Bruno Pereira [EMAIL PROTECTED] -Original Message- From: Matthew Moldvan [mailto:[EMAIL PROTECTED]] Sent: segunda-feira, 27 de Janeiro de 2003 17:21 To: &

RE: [PHP-DB] simple mail attachment with php?

2003-01-27 Thread Bruno Pereira
Try that, is very good, i have the same problem and someone send me that, try it. I hope is the right one. Thats just a class, but inside there is the instruction. I put it to work and is very good. Cumprimentos Bruno Pereira [EMAIL PROTECTED] -Original Message- From: cornelia es said

[PHP-DB] Import and export data from php/mysql

2003-01-24 Thread Bruno Pereira
I would like to know, if there is any change to export/import data from MySQL/EXCEL/MySQL with php??? It's very important. So if someone knows a way please help me. Thanks. Cumprimentos Bruno Pereira [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP-DB] PHP && MySQL: temporary table problem

2003-01-24 Thread Bruno Pereira
I would like to know, if there is any change to export/import data from SQL/EXCEL/SQL with php??? It?s very important. So if someone knows a way please help me. Thanks. Cumprimentos Bruno Pereira [EMAIL PROTECTED] -Original Message- From: Damir Dezeljin [mailto:[EMAIL PROTECTED]] Sent

RE: [PHP-DB] elseif with header

2003-01-21 Thread Bruno Pereira
I Larry is correct you havo to use (==) not (=). The first one is comparing two variables and the second is that var is equal to another var. Cumprimentos Bruno Pereira [EMAIL PROTECTED] -Original Message- From: Larry E. Ullman [mailto:[EMAIL PROTECTED]] Sent: terca-feira, 21 de Janeiro

[PHP-DB] Send mail with a file

2003-01-16 Thread Bruno Pereira
How can i insert a file on a mail, with the command "mail()"? It is possible? Cumprimentos Bruno Pereira [EMAIL PROTECTED] -Original Message----- From: Bruno Pereira [mailto:[EMAIL PROTECTED]] Sent: quarta-feira, 15 de Janeiro de 2003 14:48 Cc: [EMAIL PROTECTED]; [EMAIL PROTECTE

[PHP-DB] Concatenate two strings

2003-01-15 Thread Bruno Pereira
How can i join two strings. My code is something like: $valor1="bruno"; $valor2="Pereira"; $valor=$valor1 + " " + $valor2 Can someone help me. Thanks. Cumprimentos Bruno Pereira [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscr

[PHP-DB] SQL question!

2002-06-27 Thread Bruno Gimenes Pereti
Hi, I need a sql query to join multiple lines into only one line. Ok, I wouldn´t understand this question so I´ll give an example (I´m doing it on mysql but I need it to mssql). Supose I have 3 tables: mysql> select * from test1; ++---+ | id| nome | ++---+ | 1 | Br

Re: [PHP-DB] Re: MySQL/PHP and the case of "Good Lord, that's a lot of statements"

2002-01-15 Thread Bruno Gimenes Pereti
;s a system limitation and you have any other thing running in you machine it won't die always the same way. If it does, I think it's a script or SQL problem. Just some ideas to help... good luck, Bruno Pereti. - Original Message - From: "Tobyn Baugher" <[EMAIL

Re: [PHP-DB] Replacing * with %

2002-01-15 Thread Bruno Gimenes Pereti
There is an error in my script, % is not a special character (I got confused because of perl). So the correct is what Matt wrote. good luck, Bruno Pereti. - Original Message - From: "Bruno Gimenes Pereti" <[EMAIL PROTECTED]> To: "PHP-DB" <[EMAIL PROTECTE

Re: [PHP-DB] Replacing * with %

2002-01-15 Thread Bruno Gimenes Pereti
Hi Markus, I think you forgot to assign the value of ereg_replace to a variable. I made this test and it worked: Hope it helps, Bruno Pereti. - Original Message - From: "Markus Lervik" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 15, 2002

Re: [PHP-DB] PHP & XML

2001-12-07 Thread Bruno Gimenes Pereti
body will give a better answer but you can try it. Bruno. - Original Message - From: "Steve Haemelinck" <[EMAIL PROTECTED]> To: "Brad S. Jackson (E-mail)" <[EMAIL PROTECTED]>; "Php-Db List (E-mail)" <[EMAIL PROTECTED]>; "Php-Dev List

Re: [PHP-DB] Error help needed

2001-12-07 Thread Bruno Gimenes Pereti
it looks like the command mysql_db_query() is not used any more. Try to use mysql_select_db() and mysql_query() instead: $conn = mysql_connect($host, $user, $password); mysql_select_db($db, $conn); $result = mysql_query($sql); [...] close($conn); Hope it helps... Bruno. - Original Message

Re: [PHP-DB] MySQL table recovery.

2001-12-06 Thread Bruno Gimenes Pereti
Hi Jon, Thank you. I don't even know how to work with transaction in mysql. No problem, just more work. It is a table that store all comments done in "my" site. It's also sent to my e-mail. Thank's again. Bruno. - Original Message - From: "Jon Farmer&q

[PHP-DB] MySQL table recovery.

2001-12-06 Thread Bruno Gimenes Pereti
or any help, even if it's "forget it, no way..." Bruno. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP-DB] Ms SQL.

2001-11-22 Thread Bruno Gimenes Pereti
tting off-topic, let's continue in pvt. When we get the solution you can send it back to the list. Bruno. - Original Message - From: "Matt Lemon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 22, 2001 2:30 PM Subject: Re: [PHP-DB] Ms

Re: [PHP-DB] Ms SQL.

2001-11-22 Thread Bruno Gimenes Pereti
like php_mssql.version.rpm) Bruno Gimenes Pereti. - Original Message - From: "Matt Lemon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 22, 2001 3:08 PM Subject: [PHP-DB] Ms SQL. > I'm trying to get my linux server to connect to an MS SQL

Re: [PHP-DB] Oracle via php under windows 2k

2001-11-14 Thread Bruno Gimenes Pereti
xtract the extensions in your "extensions_dir". If you were using it in linux you would need at last the oracle client installed locally, I don't know in windows. Hope I don't sad a lot of things you've done before. Bruno. - Original Message - From: "t

[PHP-DB] image content in mail().

2001-11-14 Thread Bruno Gimenes Pereti
Hi, Who can I send an HTML e-mail with a image with mail()? Can PHP encode the image for me? Thank's Bruno. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrato

Re: [PHP-DB] Problem with include()

2001-11-13 Thread Bruno Gimenes Pereti
Try this way: in your php script: $foo = "something"; include("path/file.php"); print "$bar"; in your file.php (included): globals $foo; $bar = $foo." working"; I think this example will help... Bruno. - Original Message - From: "Torrent

Re: [PHP-DB] Problem with include()

2001-11-13 Thread Bruno Gimenes Pereti
Does include accept parameter? I have never tried. I think php will try to find a file called "poll.php?id=KnChooseBoots" not a file called poll and give argument for it. Also why do you need to put the parameter if the variable id is already set? Bruno. - Original Message

Re: [PHP-DB] any extra work need to make php mysql function available?

2001-10-31 Thread Bruno Gimenes Pereti
uncomment the line that enables the extension in your php.ini: extension=mysql.so if it don't work verify the line "extension_dir = /usr/lib/php4" and if the file mysql.so is in this directory. Bruno Gimenes Pereti. - Original Message - From: "JIM" <[E

Re: [PHP-DB] PHP query on "date" field

2001-10-30 Thread Bruno Gimenes Pereti
Hi again Jason, I think Jason Wong got the problem I missed, it's the date format. If you tested like I sad in the last mail you already found it. When you query: SELECT * FROM ads WHERE date = '%$date%'; you get an empty result. So, that's the solution... Bruno Gimene

Re: [PHP-DB] PHP query on "date" field

2001-10-30 Thread Bruno Gimenes Pereti
pect it should be working. {Hope this helps} else {tell us}. Bruno Gimenes Pereti. - Original Message - From: "Big Nickel" <[EMAIL PROTECTED]> To: "Bruno Gimenes Pereti" <[EMAIL PROTECTED]> Sent: Tuesday, October 30, 2001 4:02 PM Subject: Re: [PHP-DB]

Re: [PHP-DB] PHP query on "date" field

2001-10-30 Thread Bruno Gimenes Pereti
Hi Jason, What is the error message, in what line? I really can't find any error... Just one standarlization point: why do you use "( )" when printing and not in every other printing. For me, it's easyer to debug if every thing that do the same thing is writen the same way. Other thing out of th

Re: [PHP-DB] Variables in a loop

2001-10-30 Thread Bruno Gimenes Pereti
try and for ($i=1; $i<=10; $i++) { $tab[$i]=$a[$i] ;} This way $a will be a array. Hope it helps Bruno Gimenes Pereti. - Original Message - From: "LeTortorec, Jean-Louis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 29, 2001

Re: [PHP-DB] getting results from INSERT

2001-10-26 Thread Bruno Gimenes Pereti
I think you want this. $sql = "INSERT INTO table (cod, nome, email) VALUES ('', '$nome', '$email')"; $result = mysql_query($sql); $cod = mysql_insert_id(); The $cod is the primery key. Hope it helps. Bruno Gimenes Pereti. - Original Message

Re: [PHP-DB] Help!!!!!! ¡¡¡¡¡¡¡Ayuda!!!!!!

2001-10-25 Thread Bruno Gimenes Pereti
Look for extensions in the file php.ini. uncomment the line: extension=php_dbase.so (for linux or) extension=php_dbase.dll (for windows) remember to set extension_dir to directory where you have the file. Hope it helps. Bruno Gimenes Pereti. > I need to open a dbase file, so I use

[PHP-DB] PHP & Paradox.

2001-10-25 Thread Bruno Gimenes Pereti
ODBC para Paradox] Não foi possível abrir PARADOX.NET., SQL state S1000 in SQLConnect in c:\inetpub\wwwroot\odbc.php on line 2 Please, I'm desperate. Thank's. Bruno Gimenes Pereti. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

  1   2   >