Re: [PHP-DB] how to format the output of the text info that user uploaded?

2002-08-19 Thread Robert Parker
On Sunday 18 August 2002 04:22 pm, you wrote: I have a field in a form which allows user to upload thier biographys.Once they upload a bunch of texts,the script I wrote automatically show it on a webpage, however, the contents are all scrambled toghther without line break and formatting..

[PHP-DB] FW: MUDAR DE OPERADOR E MANTER O SEU NUMERO DE TELEMOVEL

2002-08-19 Thread José Moreira
MUDAR DE OPERADOR E MANTER O SEU NUMERO DE TELEMOVEL -Mensagem original- De: Ivan Santos [mailto:[EMAIL PROTECTED]] Enviada: segunda-feira, 19 de Agosto de 2002 12:15 Para: '[EMAIL PROTECTED]' Assunto: MUDAR DE OPERADOR E MANTER O SEU NUMERO DE TELEMOVEL Está descontente com o seu

Re: [PHP-DB] Windows XP

2002-08-19 Thread Gerard Samuel
Please forgive me, but Im more versed in FreeBSD than winXP. WinXP is on my laptop for dev purposes. When I installed mysql, I created a database and user with the name 'crash' via the command line client like so -- grant insert, delete, update, select, create, alter, drop on

Re: [PHP-DB] how to format the output of the text info that user uploaded?

2002-08-19 Thread Brent Baisley
It sounds like you want to use the nl2br() function. That will convert the new lines to HTML line breaks and give you the paragraphs that the user put in. On Sunday, August 18, 2002, at 04:22 PM, bo wrote: I have a field in a form which allows user to upload thier biographys.Once they

Re: [PHP-DB] how to store formated text in database

2002-08-19 Thread Smita Manohar
in my form i'm accepting news text from user. (user has to copy news from other sites and paste it in that field in the form) then i insert it in database. when i retrieve it and display again, i want it should be printed along with formatting which was in the original news that user had

[PHP-DB] default value for date.

2002-08-19 Thread Smita Manohar
i'm using php with mysql. some tables in database have date fields for which i have not set any default value. while displaying the values from tables, if any record has null value for date field then it displays 0-00-00. what i need to do to display null value or spaces instead of zeros.

Re: [PHP-DB] default value for date.

2002-08-19 Thread Adam Williams
set a default value that isn't possible (like -99-99 99:99:99) and then have an if statement saying if ( $row[date] == '-99-99 99:99:99' ) { $row[date] = '';} Adam On Mon, 19 Aug 2002, Smita Manohar wrote: i'm using php with mysql. some tables in database have

Re: [PHP-DB] Windows XP

2002-08-19 Thread Joni Järvinen
Hi. Try re-GRANTing the rights for user 'crash' and after you've done that, run 'flush PRIVILIGES'. Atleast on my winxp box it does the trick. -Joni- -- // Joni Järvinen // [EMAIL PROTECTED] // http://www.reactorbox.org/~wandu Gerard Samuel [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP-DB] Windows XP

2002-08-19 Thread Miles Thompson
Gerard, No need for an apology, but what permissions do you have set on the FreeBSD box? Quite frankly I'd have to haul out all the stuff on MySQL security and re-read it. Maybe that would be a good place to start, particularly if there are different methods/base requirements for XP and BSD.

[PHP-DB] PHP and Cache

2002-08-19 Thread Zhenick
Is it possible to use Cache 4.1 objects in PHP? I can access to Cache database with ODBC drivers, but I want use object inteface like Cache-Java... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] authenticating methods...

2002-08-19 Thread leo g. divinagracia iii
i was curious as to which methods you are authenticating your users? for example, i'm using apache, mysql and php in a win2k box. i want to maintain my own table of users and authenticate from that. do you have a single user with just enough rights do a SELECT? and then have another account

RE: [PHP-DB] authenticating methods...

2002-08-19 Thread Ryan Jameson (USA)
I have php on win2k with sql server and IIS, I use Active Directory for all my authentications, and integrated authentication for database access. I think it works great! My users don't even have to enter a username and password, it is all based on what they logged into their system as. I did

[PHP-DB] weird MySQL restart

2002-08-19 Thread Florin Andrei
I'm using: - apache-1.3.22 - mysql-3.23.49a - php-4.0.6 - Linux Red Hat 7.2 I have a piece of code that does this: for ($i=0; $i $brute_queries_max; $i++) { $q = $brute_queries[$i]; $q = SELECT COUNT(*) . $q; $res = mysql_query($q) or die(in $host database,