[PHP-DB] Re: Flat File Upload..HELP!

2003-01-06 Thread J.Veenhuijsen
Try move_uploaded_file() Jochem J . Keith Tew wrote: I know this is not technically a DB question but thought someone may be able to help with this. I have tried everything I could think of to make this script work but I keep getting the error message below. I've even changed the permissions

RE: [PHP-DB] Re: Flat File Upload..HELP!

2003-01-06 Thread Richard Allinson
Check your files size resriction. It seems the file is not even leaving the client. input type=hidden name=MAX_FILE_SIZE value= 1000 1000 = 1K Ric J . Keith Tew wrote: I know this is not technically a DB question but thought someone may be able to help with this. I have tried

RE: [PHP-DB] php variables to JS

2003-01-06 Thread xxx xxxx
Forget hidden form all you have to do is to insert in javascript code php code like this: ?php $variable1=1234; $variable2=87; ? . script ... weight=?php echo $variable1; ? height=?php echo $variable2; ? ..and so on /script it's simple no??? i hope it's good for your needs

[PHP-DB] mysql ssl client connection via new mysql_connect(...) in php 4.3.0

2003-01-06 Thread Ivan Hoo
hi All, how can i connect to mysql via SSL connection using mysql_connect() in php 4.3.0? i have generated all the certificates necessary and i was able to connect to mysql server via the bin/mysql command line options (below). bin/mysql -h localhost --ssl-cert=host.crt --ssl-key=host.key -u

RE: [PHP-DB] Sessions problems

2003-01-06 Thread Ford, Mike [LSS]
-Original Message- From: Sabina Alejandr Schneider [mailto:[EMAIL PROTECTED]] Sent: 05 January 2003 20:17 Hello everybody I was trying to use Sessions, but I had some problems. I have an old version of the Apache, that comes with the Red Hat 7.2. when executing this in

RE: [PHP-DB] Users on line

2003-01-06 Thread Bernain, Fernando G.
OK, guys, thanks!! I'll try it and then I'll tell you!!! Fernando Bernain Senior A Business Process Outsourcing KPMG Argentina Tel: 54 11 4316 5754 Fax: 54 11 4316 5734 [EMAIL PROTECTED] -Original Message- From: Peter Lovatt [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003

RE: [PHP-DB] displaying a MySQL date in a different format

2003-01-06 Thread Bernain, Fernando G.
I dont know if its the best solution, but I made a function that cut the date: function sqldate($fecha) { $dia=substr($fecha,0,2); $mes=substr($fecha,3,2); $anio=substr($fecha,6,4); $fechasql=$anio./.$mes./.$dia; return $fechasql;

[PHP-DB] undefined function: mssql_connect()

2003-01-06 Thread [EMAIL PROTECTED]
Hi there, Hope someone can help me with this. I need to connect to a MS SQL database but my attemps fail once and again. This is the error message I get when try to connect: Fatal error: Call to undefined function: mssql_connect() in /var/www/htdocs/DB_conn.php on line 8 The script is very

[PHP-DB] Help about printing an integer variable

2003-01-06 Thread Martín Agüero
I need to print an integer varible using this format '', I mean it always have to show four digits. How can I do that? Thanks, Martin.

Re: [PHP-DB] Help about printing an integer variable

2003-01-06 Thread 1LT John W. Holmes
You can specify a padding character and length with printf www.php.net/printf ---John Holmes... - Original Message - From: Martín Agüero [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 06, 2003 9:52 AM Subject: [PHP-DB] Help about printing an integer variable I need to

Re: [PHP-DB] Help about printing an integer variable

2003-01-06 Thread Andrey Hristov
something like printf(%+4d, $int_var); Andrey - Original Message - From: Martín Agüero [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 06, 2003 4:52 PM Subject: [PHP-DB] Help about printing an integer variable I need to print an integer varible using this format '',

RE: [PHP-DB] Help about printing an integer variable

2003-01-06 Thread Lukas Smith
Alternatively you could use str_pad() Regards, Lukas Smith [EMAIL PROTECTED] ___ BackendMedia www.backendmedia.com [EMAIL PROTECTED] Linn Zwoch Smith GbR Reuchlinstr. 10-11 Raum 4.1.6 D-10553 Berlin (Tiergarten) Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07

[PHP-DB] RE: passing array values in forms

2003-01-06 Thread Mignon Hunter
This is a variation to similar string earlier. Have been checking books, online manuals, suggestions here - tutorials and such. Having issues passing arrays in forms. I have been working on this a few days and am stuck. Am trying to pass cat[] and id[] with whatever checkbox user checks. cat[]

Re: [PHP-DB] Re: Is MySQL available from my host.

2003-01-06 Thread Robert Wagner
At www.download.com I located PHP Triad, but I'm a bit nervous, although the overall ratings for the package are high. Here are my concerns: 1) Some people couldn't install it all. 2) Apparently it MUST be installed on drive C. While I have over 500 MB in C:, it's merely my boot drive

Re: [PHP-DB] RE: passing array values in forms

2003-01-06 Thread Jason Wong
On Tuesday 07 January 2003 00:23, Mignon Hunter wrote: This is a variation to similar string earlier. Have been checking books, online manuals, suggestions here - tutorials and such. Having issues passing arrays in forms. I have been working on this a few days and am stuck. Am trying to

[PHP-DB] Special characters

2003-01-06 Thread Bernain, Fernando G.
I'm working with MSSQL7.0 Apache 1.3.19 and PHP4.2.3 When I select a table with this kind of characters: ó The output is ¢... I have the same problem with the others vocals (á-é-í-ú) What can I do??? Forgot the spanish??? Fernando Bernain Senior A Business Process Outsourcing KPMG

Re: [PHP-DB] Special characters

2003-01-06 Thread Andrey Hristov
Fernando, try to store you data in unicode (utf8) for example. You iconv to transform if it is needed. Andrey - Original Message - From: Bernain, Fernando G. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 06, 2003 7:25 PM Subject: [PHP-DB] Special characters I'm

RE: [PHP-DB] Special characters

2003-01-06 Thread Bernain, Fernando G.
I can't modify the character set of my MSSQL... (Character Set = 1, iso_1 ISO 8859-1 (Latin-1) - Western European 8-bit character set.) And I NEDD the á-é-í-ó-ú-ñ Any idea? Fernando Bernain Senior A Business Process Outsourcing KPMG Argentina Tel: 54 11 4316 5754 Fax: 54 11 4316 5734

Re: [PHP-DB] Special characters

2003-01-06 Thread Andrey Hristov
Fernando, I don't mean you to change the set of your db. I use mysql, it has char(), and I store utf-8 encoded strings. Every utf8 encoded string is made of bytes and every byte can be entered. I don't want to tell that this will work in your case but it won't hurt. iconv extension is good to

Re: [PHP-DB] undefined function: mssql_connect()

2003-01-06 Thread Frank M. Kromann
Hi With PHP 4.3.0 you can use --with-mssql (it looks for freetds in /usr/local/freetds by default). Then you can use the mssql.* settings in php.ini. When you compile using --with-sybase you would have to use the sybase.* settings in php.ini, as that is the extension you would be using. You

[PHP-DB] join query/relational database question

2003-01-06 Thread Doug Parker
I have a relational database issue that I'll simplify for the sake of this post. I have one table, called clients, that has an id and the company name. For example: id | company --- 46 Jones Inc. 54 Baker Inc. etc. I have another table called projects, that looks

Re: [PHP-DB] join query/relational database question

2003-01-06 Thread Paolo Bonavoglia
At 16:09 06/01/2003 06/01/2003, Doug Parker wrote: I have a relational database issue that I'll simplify for the sake of this post. [...] So it would be like this: id | company_id | status| company 1

RE: [PHP-DB] Re: Is MySQL available from my host.

2003-01-06 Thread Matthew Moldvan
Robert, I've only played with the package, and had no trouble installing it on Windows XP. I did install it on my C: drive, but I see no reason (unless there is something I missed in the documentation) why a simple edit of the configuration files wouldn't change that ... I would pretty much sum

Re: [PHP-DB] join query/relational database question

2003-01-06 Thread Rick Widmer
At 04:09 PM 1/6/03 -0500, Doug Parker wrote: I have a relational database issue that I'll simplify for the sake of this post. I have one table, called clients, that has an id and the company name. For example: id | company --- 46 Jones Inc. 54 Baker Inc. etc.

Re: [PHP-DB] Re: Is MySQL available from my host.

2003-01-06 Thread Leo G. Divingracia III
Robert Wagner wrote: At www.download.com I located PHP Triad, but I'm a bit nervous, although the overall ratings for the package are high. Here are my concerns: 1) Some people couldn't install it all. 2) Apparently it MUST be installed on drive C. While I have over 500 MB in C:, it's

RE: [PHP-DB] mysql time format

2003-01-06 Thread John W. Holmes
This is a bit of a newbie question, but I couldn't find what I wanted in the documentation. Is there any way to set the time format so that any time values in my SELECT call are in a speicified format (e.g., HH:MM instead of HH:MM:SS). Basically I've got a table of a variety of different

[PHP-DB] File Upload ---Thanks!

2003-01-06 Thread J . Keith Tew
Thanks folks - persistence pays off and so does group discussions . I had chmodded the uploads directory to 777 but it was within the public_html directory with different file permissions so I guess public_html permissions were taking presidence. After reading all of your suggestions... a